[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAE9FiQWEjAd5HrreT+nLjuPX1to06Tf+UDfsKL3Wr+Qy4gF+CA@mail.gmail.com>
Date: Fri, 23 Nov 2012 23:00:54 -0800
From: Yinghai Lu <yinghai@...nel.org>
To: "Eric W. Biederman" <ebiederm@...ssion.com>
Cc: "H. Peter Anvin" <hpa@...or.com>,
Thomas Gleixner <tglx@...utronix.de>,
Ingo Molnar <mingo@...e.hu>, linux-kernel@...r.kernel.org,
Matt Fleming <matt.fleming@...el.com>
Subject: Re: [PATCH v3 01/12] x86, boot: move verify_cpu.S after 0x200
On Thu, Nov 22, 2012 at 3:27 AM, Eric W. Biederman
<ebiederm@...ssion.com> wrote:
> "H. Peter Anvin" <hpa@...or.com> writes:
>
>> Quite certain something depends on it.
>
> It would not surprise me at all that there is a dependency, if we have
> not had a better way to report the 64bit entry point. I just wanted to
> make the context clear as that was confused in the discussion.
>
> Note that having a 32bit entry point at offset 0 is as much of an ABI.
>
> I am surprised that there are legitimate reasons to bulk up the 32bit
> entry point code before the 0x200. Everything that we are doing at that
> point is architectural.
arch/x86/boot/header.S has bzImage 16 bit entry, and it is 0x200
arch/x86/boot/compressed/head_64.S has bzImage 32bit entry and 64bit entry.
loader need to find out the setup_code size at first aka kern16_size.
then from kern16_size will be 32bit code/64 bit code, will be aligned
to kernel_align
then from there 0: will be 32bit entry, 0x200 will be 64bit entry.
Actually kexec does not support bzImage booting directly from 64bit
before this patch set.
So are there any 64 bit boot loader that load bzImage and boot
directly from that second 0x200
64 bit entry ?
If there is no such bootloader there, we may change that position, and
add one field in setup_header
for it.
Thanks
Yinghai
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists