Skip to content

Commit

Permalink
ARM: 6119/1: kdump: skip indirection page when crashing
Browse files Browse the repository at this point in the history
When we are crashing there is no indirection page in place. Only
control page is present.

Signed-off-by: Mika Westerberg <ext-mika.1.westerberg@nokia.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
  • Loading branch information
Mika Westerberg authored and Russell King committed Jul 9, 2010
1 parent c638362 commit 8594a0c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions arch/arm/kernel/relocate_kernel.S
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8594a0c

Please sign in to comment.