Skip to content

Commit

Permalink
[PATCH] ppc32: use correct register names in arch/ppc/kernel/relocate…
Browse files Browse the repository at this point in the history
…_kernel.S

CONFIG_KEXEC=y doesnt work:

arch/ppc/kernel/relocate_kernel.S:37: Error: unsupported relocation against SRR1
arch/ppc/kernel/relocate_kernel.S:39: Error: unsupported relocation against SRR0

Signed-off-by: Olaf Hering <olh@suse.de>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Olaf Hering authored and Linus Torvalds committed Jun 30, 2005
1 parent 5ee24d9 commit ee93b43
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/ppc/kernel/relocate_kernel.S
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ relocate_new_kernel:

mr r8, r0
ori r8, r8, MSR_RI|MSR_ME
mtspr SRR1, r8
mtspr SPRN_SRR1, r8
addi r8, r4, 1f - relocate_new_kernel
mtspr SRR0, r8
mtspr SPRN_SRR0, r8
sync
rfi

Expand Down

0 comments on commit ee93b43

Please sign in to comment.