powerpc/ptrace: drop unnecessary #ifdefs CONFIG_PPC64
Drop a bunch of #ifdefs CONFIG_PPC64 that are not vital. Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/af38b87a7e1e3efe4f9b664eaeb029e6e7d69fdb.1582848567.git.christophe.leroy@c-s.fr
This commit is contained in:
committed by
Michael Ellerman
parent
b3138536c8
commit
f1763e623c
@@ -279,6 +279,8 @@ static inline unsigned long regs_get_kernel_stack_nth(struct pt_regs *regs,
|
||||
#endif /* __ASSEMBLY__ */
|
||||
|
||||
#ifndef __powerpc64__
|
||||
/* We need PT_SOFTE defined at all time to avoid #ifdefs */
|
||||
#define PT_SOFTE PT_MQ
|
||||
#else /* __powerpc64__ */
|
||||
#define PT_FPSCR32 (PT_FPR0 + 2*32 + 1) /* each FP reg occupies 2 32-bit userspace slots */
|
||||
#define PT_VR0_32 164 /* each Vector reg occupies 4 slots in 32-bit */
|
||||
|
||||
Reference in New Issue
Block a user