Commit be9382ca authored by Fupan Li's avatar Fupan Li Committed by Jiri Slaby

efi: fix 32bit kernel boot failed problem using efi

3.12 commit 065487a1 ("x86/efi:
Correct EFI boot stub use of code32_start"), upstream commit
7e8213c1 imported a bug, which will
cause 32bit kernel boot to fail using EFI method. It should use the
label's address instead of the value stored in the label to calculate
the address of code32_start.
Signed-off-by: default avatarFupan Li <fupan.li@windriver.com>
Reviewed-by: default avatarMatt Fleming <matt.fleming@intel.com>
Signed-off-by: default avatarJiri Slaby <jslaby@suse.cz>
parent 1798326e
......@@ -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