All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Fix kexec call on MIPS platform
@ 2010-03-21 17:06 Adrian Byszuk
  2010-03-27 18:19 ` Adrian Byszuk
  0 siblings, 1 reply; 2+ messages in thread
From: Adrian Byszuk @ 2010-03-21 17:06 UTC (permalink / raw)
  To: linux-mips

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);
 

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

end of thread, other threads:[~2010-03-27 18:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-21 17:06 [PATCH] Fix kexec call on MIPS platform Adrian Byszuk
2010-03-27 18:19 ` Adrian Byszuk

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.