Skip to contentSkip to conversation

grub EFI signature should be little endian

PATCH bibo,mao 1 participant 1 message Dec 6, 2006

lore
Share & tools
lore

bibo,mao

author
#0 lore raw

hi,
EFI bootloader signature is "EFIL" string, x86 machine is little-endian.
This patch changes grub efi booloader sigature as little-endian.

thanks
bibo,mao

include/grub/i386/linux.h +0 -0
@@ -46,7 +46,7 @@

#define GRUB_LINUX_CL_MAGIC 0xA33F

#define GRUB_LINUX_EFI_SIGNATURE \

-  ('E' << 24 | 'F' << 16 | 'I' << 8 | 'L')
+  ('L' << 24 | 'I' << 16 | 'F' << 8 | 'E')

#ifndef ASM_FILE