mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: <fupan.li@windriver.com>
To: <matt@console-pimps.org>, <stable@vger.kernel.org>
Cc: <linux-kernel@vger.kernel.org>, <fupanli@gmail.com>
Subject: [PATCH 3.10 ~ 3.14] efi: fix the efi 32bit boot failed problem
Date: Tue, 28 Jul 2015 18:21:19 +0800	[thread overview]
Message-ID: <1438078879-24705-1-git-send-email-fupan.li@windriver.com> (raw)

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


             reply	other threads:[~2015-07-28 10:23 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-28 10:21 fupan.li [this message]
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

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=1438078879-24705-1-git-send-email-fupan.li@windriver.com \
    --to=fupan.li@windriver.com \
    --cc=fupanli@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=matt@console-pimps.org \
    --cc=stable@vger.kernel.org \
    /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

all inboxes | Powered by JetHome®