qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH] hw/mips: align initrd to 64KB to avoid kernel e


From: Peter Maydell
Subject: Re: [Qemu-devel] [PATCH] hw/mips: align initrd to 64KB to avoid kernel error
Date: Thu, 27 Jun 2013 09:12:43 +0100

On 27 June 2013 08:35, Leon Alrae <address@hidden> wrote:
> From: James Hogan <address@hidden>
>
> The Linux kernel can be configured to use 64KB pages, but it also
> requires initrd to be page aligned. Therefore, to be safe, align the
> initrd to 64KB using a new INITRD_PAGE_MASK rather than
> TARGET_PAGE_MASK.

This is kind of similar to the ARM bug fixed in 98ed805c3.
I wonder if we ought to have a per-CPU #define for "largest
possible page alignment for this architecture" as well as
"smallest possible" (the latter being TARGET_PAGE_MASK).

This patch is a reasonable enough way to fix things though,
so I'm not objecting to it.

Aside: given the repetitive nature of the context hunks
observable in this patch, it looks like it ought to be
possible to abstract out some of the initrd/kernel load
code from all those boards...

thanks
-- PMM



reply via email to

[Prev in Thread] Current Thread [Next in Thread]