linux-mips
[Top] [All Lists]

[PATCH] Fix kexec call on MIPS platform

To: linux-mips@linux-mips.org
Subject: [PATCH] Fix kexec call on MIPS platform
From: Adrian Byszuk <adebex@gmail.com>
Date: Sun, 21 Mar 2010 17:06:47 +0000
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:subject:date :user-agent:mime-version:content-type:content-transfer-encoding :message-id; bh=ABnITTmOU2e6D+SffjQ5RmkzU9xomC82KJLJXaD+gw8=; b=cPJ7R6FkTFb25EfOQN6txJ9GAsAmnv8xM3mUfaQp8zhOO2weoixgThPzrzDYNn4vet 58yDzSMRq6+RcXucxlGMekzpfMAV5W+D2gPgZAePlFcvF2QTCZ91ZLcqh8F25kN2kU0r ZLkMcQHRjpUZEzPRdiAHDT+QoHk3oGMVUo6xA=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:user-agent:mime-version:content-type :content-transfer-encoding:message-id; b=JfVYWmMqWrt+8byAgScaO/McwFGCiR1dc2HN1+AC/4xGjUvtqqc6hDaN39etd1euWg l8FYVyr/O3Ol4pEANA1WHUtZKvFJKl2M2F2vHw94VRIc/TYFy+i+GCVwQbfe8t/gszrT NA1Kz3rNYavUIZDtasvbH+S9/A65CClX6+QIc=
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
User-agent: KMail/1.12.4 (Linux/2.6.33.1-custom; KDE/4.3.4; i686; ; )
Dear developers,

This kernel patch fixes problems with kexec call on some devices.
I tested it on Asus WL-500gP v2. I suppose it would behave well on all MIPS 
machines.
Applicable to 2.6.32 and 2.6.33

Signed-off-by: Adrian Byszuk <adebex_at_gmail.com>

---

--- a/arch/mips/kernel/machine_kexec.c  2010-03-15 15:52:04.000000000 +0000
+++ b/arch/mips/kernel/machine_kexec.c  2010-03-21 15:25:13.953615489 +0000
@@ -52,7 +52,8 @@
        reboot_code_buffer =
          (unsigned long)page_address(image->control_code_page);
 
-       kexec_start_address = image->start;
+       kexec_start_address = 
+               (unsigned long) phys_to_virt(image->start);
        kexec_indirection_page =
                (unsigned long) phys_to_virt(image->head & PAGE_MASK);
 

<Prev in Thread] Current Thread [Next in Thread>