Page 1 of 1
Something about entering the long mode
Posted: Wed Mar 12, 2014 10:05 pm
by xtricman
Does GRUB2 x86-64 work in true long mode?I want use GRUB2 as payload of coreboot,
If GRUB2 works in true long mode,I can just re-set the page tables(PML4T,PDPT,PDT,PT),CR3,and the IDT,no need to worry about how to enter true long mode.
Am I right?
Re: Something about entering the long mode
Posted: Thu Mar 13, 2014 12:09 am
by Brendan
Hi,
xtricman wrote:Am I right?
I'd assume (I don't know) that GRUB2 is capable of running in long mode (e.g. to support 64-bit UEFI systems properly); will use the kernel's 64-bit entry point if the Linux boot protocol is being used; and will switch back to protected mode if multi-boot was used.
Cheers,
Brendan
Re: Something about entering the long mode
Posted: Thu Mar 13, 2014 11:35 am
by sortie
It doesn't matter how GRUB works internally, only what formats it can load. It can load 64-bit kernels, for instance 64-bit Linux, though I don't know much about that. Multiboot is a 32-bit format, there is no usable 64-bit multiboot counterpart last I checked.