[PATCH] ppc32: use correct register names in arch/ppc/kernel/relocate_kernel.S
authorOlaf Hering <olh@suse.de>
Thu, 30 Jun 2005 09:58:49 +0000 (02:58 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Thu, 30 Jun 2005 15:45:09 +0000 (08:45 -0700)
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>
arch/ppc/kernel/relocate_kernel.S

index 7ff69c4af920ea9c59217ae4b67bc508dab0e75f..9b2ad48e988c45bc3e18c5dee7834788aa299e03 100644 (file)
@@ -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