Commit 9a9f238f authored by Fupan Li's avatar Fupan Li Committed by Greg Kroah-Hartman

efi: fix 32bit kernel boot failed problem using efi

Commit 35d5134b
("x86/efi: Correct EFI boot stub use of code32_start")
imported a bug, which will cause 32bit kernel boot failed
using efi method. It should use the label's address instead
of the value stored in the label to caculate the address of
code32_start.
Signed-off-by: default avatarFupan Li <fupan.li@windriver.com>
Reviewed-by: default avatarMatt Fleming <matt.fleming@intel.com>
parent 00e59335
......@@ -54,7 +54,7 @@ ENTRY(efi_pe_entry)
call reloc
reloc:
popl %ecx
subl reloc, %ecx
subl $reloc, %ecx
movl %ecx, BP_code32_start(%eax)
sub $0x4, %esp
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment