[PATCH] i386: Using 64-bit boot protocol for 64-bit linux kernel

2022-07-23 Thread Wei Zhang
Currently GRUB boots linux with 32-bit protocol even for 64 bit kernel. Thus if both GRUB and linux kernel are in 64-bit, we'll have to go through 64-bit grub -> 32-bit boot protocol -> 64-bit kernel transitions, and extra instructions will be executed in the kernel. Since linux has long suppor

[PATCH] i386: Using 64-bit boot protocol for 64-bit linux kernel

2022-07-23 Thread Wei Zhang
Currently GRUB boots linux with 32-bit protocol even for 64 bit kernel. Thus if both GRUB and linux kernel are in 64-bit, we'll have to go through 64-bit grub -> 32-bit boot protocol -> 64-bit kernel transitions, and extra instructions will be executed in the kernel. Since linux has long suppor

[PATCH V2] i386: Using 64-bit boot protocol for 64-bit linux kernel

2022-07-23 Thread Wei Zhang
From: Wei Zhang Currently GRUB boots linux with 32-bit protocol for 64 bit kernel. Thus if both GRUB and linux kernel are in 64-bit, we'll have to go through 64-bit grub -> 32-bit boot protocol -> 64-bit kernel transitions, and extra instructions have to be executed in the kernel. Since linux