From: tip-bot for David Woodhouse <David.Woodhouse@intel.com>
To: linux-tip-commits@vger.kernel.org
Cc: linux-kernel@vger.kernel.org, hpa@zytor.com, mingo@kernel.org,
matt.fleming@intel.com, stable@kernel.org, tglx@linutronix.de,
hpa@linux.intel.com, David.Woodhouse@intel.com
Subject: [tip:x86/efi] x86, efi: Fix 32-bit EFI handover protocol entry point
Date: Sun, 27 Jan 2013 20:31:06 -0800 [thread overview]
Message-ID: <tip-f791620fa7517e1045742c475a7f005db9a634b8@git.kernel.org> (raw)
In-Reply-To: <1358513837.2397.247.camel@shinybook.infradead.org>
Commit-ID: f791620fa7517e1045742c475a7f005db9a634b8
Gitweb: http://git.kernel.org/tip/f791620fa7517e1045742c475a7f005db9a634b8
Author: David Woodhouse <David.Woodhouse@intel.com>
AuthorDate: Mon, 7 Jan 2013 22:01:50 +0000
Committer: H. Peter Anvin <hpa@linux.intel.com>
CommitDate: Sun, 27 Jan 2013 20:19:37 -0800
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 | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/x86/boot/compressed/head_32.S b/arch/x86/boot/compressed/head_32.S
index aa4aaf1..ccb2f4a 100644
--- a/arch/x86/boot/compressed/head_32.S
+++ b/arch/x86/boot/compressed/head_32.S
@@ -50,8 +50,10 @@ ENTRY(startup_32)
pushl %eax
pushl %esi
pushl %ecx
+ sub $0x4, %esp
.org 0x30,0x90
+ add $0x4, %esp
call efi_main
cmpl $0, %eax
movl %eax, %esi
next prev parent reply other threads:[~2013-01-28 4:31 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-18 10:29 [GIT PULL] EFI fixes for v3.8 Matt Fleming
2013-01-18 12:57 ` David Woodhouse
2013-01-28 4:29 ` [tip:x86/efi] x86, efi: Fix display detection in EFI boot stub tip-bot for David Woodhouse
2013-01-28 4:31 ` tip-bot for David Woodhouse [this message]
2013-01-28 4:32 ` [tip:x86/efi] x86, efi: Fix PCI ROM handing in EFI boot stub, in 32-bit mode tip-bot for David Woodhouse
2013-01-28 4:33 ` [tip:x86/efi] x86, build: Dynamically find entry points in compressed startup code tip-bot for David Woodhouse
2013-01-29 19:03 ` [GIT PULL] EFI fixes for v3.8 Matt Fleming
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=tip-f791620fa7517e1045742c475a7f005db9a634b8@git.kernel.org \
--to=david.woodhouse@intel.com \
--cc=hpa@linux.intel.com \
--cc=hpa@zytor.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-tip-commits@vger.kernel.org \
--cc=matt.fleming@intel.com \
--cc=mingo@kernel.org \
--cc=stable@kernel.org \
--cc=tglx@linutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome