qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH] hw/arm/boot: get AArch64 kernel Image load offs


From: Peter Maydell
Subject: Re: [Qemu-devel] [PATCH] hw/arm/boot: get AArch64 kernel Image load offset from Image file
Date: Fri, 16 May 2014 11:02:43 +0100

On 15 May 2014 19:54, Peter Maydell <address@hidden> wrote:
> One suggestion I've seen for dealing with this is that
> the semantics become such that bootloader code does this:
>      if (hdr.res[0] == 0) {
>         /* legacy broken kernels, always this address */
>         return 0x80000;
>      } else {
>         return le64_to_cpu(hdr.text_offset);
>      }
> (ie hdr.res[0] becomes an indicator of whether the kernel
> is consistent about what text_offset means; if it's zero
> this is an old legacy kernel, which conveniently always uses
> the same fixed address.)
>
> We may need to wait for the kernel patches to appear
> (and the decision about how bootloaders should interpret
> the text_offset field to be resolved) before we can change
> our bootloader code...

Mark Rutland has now posted those kernel patches:
http://archive.arm.linux.org.uk/lurker/message/20140516.095035.4bf1f2bd.en.html

-- PMM



reply via email to

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