Skip to contentSkip to conversation

Fix kexec call on MIPS platform

PATCH In review Adrian Byszuk 1 participant 2 messages Mar 21, 2010 – Mar 27, 2010 MIPS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix kexec call on MIPS platform

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>

---

arch/mips/kernel/machine_kexec.c +2 -1
@@ -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);
 
#1 lore raw

Dnia niedziela 21 marca 2010 o 17:06:47 Adrian Byszuk napisał(a):

Quoted 7 lines

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

Hi everyone!

I'd like to know if somebody at least had a look on this patch? If it won't get upstream, then I'll try to make it openWRT specific at least. Simple answer like no/not yet/yes, applied will be enough.

Kind regards
Adrian