Ticket #7115: fix-kexec-mips.patch

File fix-kexec-mips.patch, 4.6 KB (added by Quentin Armitage <quentin@…>, 6 years ago)

Patch to allow kexec to work on mips

  • target/linux/generic-2.6/patches-2.6.34/023-mips-fix-kexec.patch

     
     1--- a/arch/mips/kernel/machine_kexec.c  2010-03-15 15:52:04.000000000 +0000 
     2+++ b/arch/mips/kernel/machine_kexec.c  2010-03-29 12:10:37.000000000 +0100 
     3@@ -52,7 +52,7 @@ 
     4        reboot_code_buffer = 
     5          (unsigned long)page_address(image->control_code_page); 
     6  
     7-       kexec_start_address = image->start; 
     8+       kexec_start_address = (unsigned long) phys_to_virt(image->start); 
     9        kexec_indirection_page = 
     10                (unsigned long) phys_to_virt(image->head & PAGE_MASK); 
     11  
  • target/linux/generic-2.6/patches-2.6.25/023-mips-fix-kexec.patch

     
     1--- a/arch/mips/kernel/machine_kexec.c  2010-03-15 15:52:04.000000000 +0000 
     2+++ b/arch/mips/kernel/machine_kexec.c  2010-03-29 12:10:37.000000000 +0100 
     3@@ -52,7 +52,7 @@ 
     4        reboot_code_buffer = 
     5          (unsigned long)page_address(image->control_code_page); 
     6  
     7-       kexec_start_address = image->start; 
     8+       kexec_start_address = (unsigned long) phys_to_virt(image->start); 
     9        kexec_indirection_page = 
     10                (unsigned long) phys_to_virt(image->head & PAGE_MASK); 
     11  
  • target/linux/generic-2.6/patches-2.6.30/023-mips-fix-kexec.patch

     
     1--- a/arch/mips/kernel/machine_kexec.c  2010-03-15 15:52:04.000000000 +0000 
     2+++ b/arch/mips/kernel/machine_kexec.c  2010-03-29 12:10:37.000000000 +0100 
     3@@ -52,7 +52,7 @@ 
     4        reboot_code_buffer = 
     5          (unsigned long)page_address(image->control_code_page); 
     6  
     7-       kexec_start_address = image->start; 
     8+       kexec_start_address = (unsigned long) phys_to_virt(image->start); 
     9        kexec_indirection_page = 
     10                (unsigned long) phys_to_virt(image->head & PAGE_MASK); 
     11  
  • target/linux/generic-2.6/patches-2.6.31/023-mips-fix-kexec.patch

     
     1--- a/arch/mips/kernel/machine_kexec.c  2010-03-15 15:52:04.000000000 +0000 
     2+++ b/arch/mips/kernel/machine_kexec.c  2010-03-29 12:10:37.000000000 +0100 
     3@@ -52,7 +52,7 @@ 
     4        reboot_code_buffer = 
     5          (unsigned long)page_address(image->control_code_page); 
     6  
     7-       kexec_start_address = image->start; 
     8+       kexec_start_address = (unsigned long) phys_to_virt(image->start); 
     9        kexec_indirection_page = 
     10                (unsigned long) phys_to_virt(image->head & PAGE_MASK); 
     11  
  • target/linux/generic-2.6/patches-2.6.32/023-mips-fix-kexec.patch

     
     1--- a/arch/mips/kernel/machine_kexec.c  2010-03-15 15:52:04.000000000 +0000 
     2+++ b/arch/mips/kernel/machine_kexec.c  2010-03-29 12:10:37.000000000 +0100 
     3@@ -52,7 +52,7 @@ 
     4        reboot_code_buffer = 
     5          (unsigned long)page_address(image->control_code_page); 
     6  
     7-       kexec_start_address = image->start; 
     8+       kexec_start_address = (unsigned long) phys_to_virt(image->start); 
     9        kexec_indirection_page = 
     10                (unsigned long) phys_to_virt(image->head & PAGE_MASK); 
     11  
  • target/linux/generic-2.6/patches-2.6.33/023-mips-fix-kexec.patch

     
     1--- a/arch/mips/kernel/machine_kexec.c  2010-03-15 15:52:04.000000000 +0000 
     2+++ b/arch/mips/kernel/machine_kexec.c  2010-03-29 12:10:37.000000000 +0100 
     3@@ -52,7 +52,7 @@ 
     4        reboot_code_buffer = 
     5          (unsigned long)page_address(image->control_code_page); 
     6  
     7-       kexec_start_address = image->start; 
     8+       kexec_start_address = (unsigned long) phys_to_virt(image->start); 
     9        kexec_indirection_page = 
     10                (unsigned long) phys_to_virt(image->head & PAGE_MASK); 
     11