Skip to content

Commit

Permalink
efi: fix 32bit kernel boot failed problem using efi
Browse files Browse the repository at this point in the history
Commit 35d5134
("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: Fupan Li <fupan.li@windriver.com>
Reviewed-by: Matt Fleming <matt.fleming@intel.com>
  • Loading branch information
Fupan Li authored and Greg Kroah-Hartman committed Aug 10, 2015
1 parent 00e5933 commit 9a9f238
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/x86/boot/compressed/head_32.S
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9a9f238

Please sign in to comment.