diff options
author | Anton Vorontsov <avorontsov@ru.mvista.com> | 2008-12-17 11:08:55 +0100 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2008-12-23 05:13:28 +0100 |
commit | 322b439455ea62e6480e300c77b258e872896381 (patch) | |
tree | f79b7ac590f7a9448915ffb12a5188ed3b309f49 /arch/powerpc/include/asm/reg.h | |
parent | powerpc: Remove default kexec/crash_kernel ops assignments (diff) | |
download | linux-322b439455ea62e6480e300c77b258e872896381.tar.xz linux-322b439455ea62e6480e300c77b258e872896381.zip |
powerpc: Prepare xmon_save_regs for use with kdump
Today the arch/powerpc/xmon/setjmp.S file contains only the
xmon_save_regs function. We want to use it for kdump purposes, so
let's move the file into arch/powerpc/kernel/ and give the function a
more generic name (ppc_save_regs).
Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/include/asm/reg.h')
-rw-r--r-- | arch/powerpc/include/asm/reg.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/reg.h b/arch/powerpc/include/asm/reg.h index c6d1ab650778..f484a343efba 100644 --- a/arch/powerpc/include/asm/reg.h +++ b/arch/powerpc/include/asm/reg.h @@ -783,6 +783,10 @@ extern void scom970_write(unsigned int address, unsigned long value); #define __get_SP() ({unsigned long sp; \ asm volatile("mr %0,1": "=r" (sp)); sp;}) +struct pt_regs; + +extern void ppc_save_regs(struct pt_regs *regs); + #endif /* __ASSEMBLY__ */ #endif /* __KERNEL__ */ #endif /* _ASM_POWERPC_REG_H */ |