]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
x86, efi: Fix 32-bit EFI handover protocol entry point
authorDavid Woodhouse <David.Woodhouse@intel.com>
Mon, 7 Jan 2013 22:01:50 +0000 (22:01 +0000)
committerH. Peter Anvin <hpa@linux.intel.com>
Mon, 28 Jan 2013 04:19:37 +0000 (20:19 -0800)
commitf791620fa7517e1045742c475a7f005db9a634b8
treeba3e074027f4a75065c8c3596c8b358263154438
parent70a479cbe80296d3113e65cc2f713a5101061daf
x86, efi: Fix 32-bit EFI handover protocol entry point

If the bootloader calls the EFI handover entry point as a standard function
call, then it'll have a return address on the stack. We need to pop that
before calling efi_main(), or the arguments will all be out of position on
the stack.

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Cc: <stable@kernel.org>
Link: http://lkml.kernel.org/r/1358513837.2397.247.camel@shinybook.infradead.org
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Cc: Matt Fleming <matt.fleming@intel.com>
arch/x86/boot/compressed/head_32.S