]> git.hungrycats.org Git - linux/commitdiff
[PATCH] Fix incorrect PT_FPSCR definition
authorPaul Mackerras <paulus@samba.org>
Tue, 18 May 2004 15:07:43 +0000 (08:07 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Tue, 18 May 2004 15:07:43 +0000 (08:07 -0700)
Bryan Rosenburg pointed out that the definition of PT_FPSCR in
include/asm-ppc64/ptrace.h is wrong.  The patch below fixes it.

include/asm-ppc64/ptrace.h

index 1b5b1bac4441003797f0711a95222368701afe9d..c4e809d699900826c2f4159ed01644195bda910b 100644 (file)
@@ -124,7 +124,7 @@ struct pt_regs32 {
 /* Kernel and userspace will both use this PT_FPSCR value.  32-bit apps will have
  * visibility to the asm-ppc/ptrace.h header instead of this one.
  */
-#define PT_FPSCR (PT_FPR0 + 32 + 1)      /* each FP reg occupies 1 slot in 64-bit space */
+#define PT_FPSCR (PT_FPR0 + 32)          /* each FP reg occupies 1 slot in 64-bit space */
 
 #ifdef __KERNEL__
 #define PT_FPSCR32 (PT_FPR0 + 2*32 + 1)          /* each FP reg occupies 2 32-bit userspace slots */