]> rtime.felk.cvut.cz Git - lisovros/linux_canprio.git/blobdiff - arch/arm/kernel/relocate_kernel.S
ARM: 6119/1: kdump: skip indirection page when crashing
[lisovros/linux_canprio.git] / arch / arm / kernel / relocate_kernel.S
index 61930eb0902941030e3e180aca40f6f82697e39e..fd26f8d65151a949e6ecff394f0146258882b9d6 100644 (file)
@@ -10,6 +10,12 @@ relocate_new_kernel:
        ldr     r0,kexec_indirection_page
        ldr     r1,kexec_start_address
 
+       /*
+        * If there is no indirection page (we are doing crashdumps)
+        * skip any relocation.
+        */
+       cmp     r0, #0
+       beq     2f
 
 0:     /* top, read another word for the indirection page */
        ldr     r3, [r0],#4