From f9677ef9e5a064116296a3a5b43166cfc0dd225d Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Sat, 4 Sep 2004 02:48:06 -0700 Subject: [PATCH] ppc64: move C declaration in ptrace.h into "ifndef __ASSEMBLY__" The assembler gets quite confused otherwise. --- include/asm-ppc64/ptrace.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/include/asm-ppc64/ptrace.h b/include/asm-ppc64/ptrace.h index 2dacb2c1bb166..c96aad28fc081 100644 --- a/include/asm-ppc64/ptrace.h +++ b/include/asm-ppc64/ptrace.h @@ -60,21 +60,21 @@ struct pt_regs32 { PPC_REG_32 result; /* Result of a system call */ }; +#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 +#endif /* __ASSEMBLY__ */ + #define STACK_FRAME_OVERHEAD 112 /* size of minimum stack frame */ /* Size of dummy stack frame allocated when calling signal handler. */ #define __SIGNAL_FRAMESIZE 128 #define __SIGNAL_FRAMESIZE32 64 -#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_LG) & 0x1) #define force_successful_syscall_return() \ -- 2.53.0