diff options
| author | Zwane Mwaikambo <zwane@linuxpower.ca> | 2004-09-04 02:19:10 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-09-04 02:19:10 -0700 |
| commit | c3892c11104fc6c0d1c847ddefd75c8168b7c90a (patch) | |
| tree | 78f3c2128b43aec107416edffb059876330c0666 /include | |
| parent | 4c9ed1710d1835a05bbf13c54f8ea955688d0802 (diff) | |
[PATCH] out-of-line locks / ppc32
Signed-off-by: Zwane Mwaikambo <zwane@fsmlabs.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include')
| -rw-r--r-- | include/asm-ppc/ptrace.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/asm-ppc/ptrace.h b/include/asm-ppc/ptrace.h index 3e5920032fc3..9d4e4ea530c3 100644 --- a/include/asm-ppc/ptrace.h +++ b/include/asm-ppc/ptrace.h @@ -47,7 +47,12 @@ struct pt_regs { #ifndef __ASSEMBLY__ #define instruction_pointer(regs) ((regs)->nip) +#ifdef CONFIG_SMP +extern unsigned long profile_pc(struct pt_regs *regs); +#else #define profile_pc(regs) instruction_pointer(regs) +#endif + #define user_mode(regs) (((regs)->msr & MSR_PR) != 0) #define force_successful_syscall_return() \ |
