Messages in this thread Patch in this message | | | Date | Mon, 06 Jun 2011 19:05:06 -0700 | From | Yinghai Lu <> | Subject | Re: 2.6.39.1 immediately reboots/resets on EFI system |
| |
On 06/06/2011 06:41 PM, Matthew Garrett wrote: > On Mon, Jun 06, 2011 at 05:19:17PM -0700, Yinghai Lu wrote: > >> assume EFI in ram is not page-aligned? > > They'll be 4K aligned at least. >
can you get boot log with "memblock=debug"?
wonder if
diff --git a/arch/x86/kernel/setup.c b/arch/x86/kernel/setup.c index 4be9b39..c6724e4 100644 (file) --- a/arch/x86/kernel/setup.c +++ b/arch/x86/kernel/setup.c @@ -912,6 +912,13 @@ void __init setup_arch(char **cmdline_p) memblock.current_limit = get_max_mapped(); memblock_x86_fill(); + /* + * The EFI specification says that boot service code won't be called + * after ExitBootServices(). This is, in fact, a lie. + */ + if (efi_enabled) + efi_reserve_boot_services(
wonder if double memblock ram array in memblock_x86_fill() that is overlapping with boot services.
Thanks
Yinghai
| |