Re: [RFC] MIPS: Align vmlinuz load address to a page boundary

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Jun 10, 2018 at 08:20:58PM +0200, Fredrik Noring wrote:

> The kexec system call seems to require that the vmlinuz loading address is
> aligned to a page boundary. 4096 bytes is a fairly common page size, but
> perhaps not the only possibility? Does kexec require additional alignments?

Basically MIPS supports page sizes 4k, 8k, 16k, 32k, 64k.  Not every system
supports all page sizes.  4k is the safe bet while larger systems prefer 16k
or 64k.  Details are complicated.

And of course with kexec the kexecing and the kexecuted kernels do not even
have to have the same page size.  It would appear that the userland code you
were refering to in your 2nd email in

  https://git.kernel.org/pub/scm/utils/kernel/kexec/kexec-tools.git/tree/kexec/kexec.c?id=HEAD#n343

might erroneously fail if pagesize on the kexecing kernel is larger than of
the kernel being kexed.

  Ralf




[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux