stable.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 3.10 ~ 3.14] efi: fix the efi 32bit boot failed problem
@ 2015-07-28 10:21 fupan.li
  2015-07-28 15:15 ` Greg KH
  2015-07-30 15:04 ` Matt Fleming
  0 siblings, 2 replies; 11+ messages in thread
From: fupan.li @ 2015-07-28 10:21 UTC (permalink / raw)
  To: matt, stable; +Cc: linux-kernel, fupanli

From: fli <fupan.li@windriver.com>

The commit 35d5134b7d5a55e269c953096224248b9f6f72c2
Author: Matt Fleming <matt@console-pimps.org>
Date:   Tue Apr 8 13:14:00 2014 +0100

    x86/efi: Correct EFI boot stub use of code32_start

imported a bug, which should use the label's address instead
of the value stored in the label's address to caculate the
code32_start address.

Signed-off-by: fli <fupan.li@windriver.com>
---
 arch/x86/boot/compressed/head_32.S | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/x86/boot/compressed/head_32.S b/arch/x86/boot/compressed/head_32.S
index abb988a..3b28eff 100644
--- a/arch/x86/boot/compressed/head_32.S
+++ b/arch/x86/boot/compressed/head_32.S
@@ -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
-- 
1.9.1


^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2015-08-03  2:14 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-28 10:21 [PATCH 3.10 ~ 3.14] efi: fix the efi 32bit boot failed problem fupan.li
2015-07-28 15:15 ` Greg KH
2015-07-30 15:04 ` Matt Fleming
2015-07-30 16:31   ` Greg KH
2015-07-30 16:45     ` Matt Fleming
2015-07-30 16:59       ` Greg KH
2015-07-31  1:22         ` fupan
2015-07-31 12:05           ` Matt Fleming
2015-07-31 12:21             ` Luis Henriques
2015-08-03  1:38               ` fupan
2015-08-03  2:12             ` fupan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).