patch-2.3.30 linux/include/asm-ppc/ptrace.h

Next file: linux/include/asm-ppc/resource.h
Previous file: linux/include/asm-ppc/processor.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.29/linux/include/asm-ppc/ptrace.h linux/include/asm-ppc/ptrace.h
@@ -49,7 +49,7 @@
 #define __SIGNAL_FRAMESIZE	64
 
 #define instruction_pointer(regs) ((regs)->nip)
-#define user_mode(regs) ((regs)->msr & 0x4000)
+#define user_mode(regs) ((regs)->msr & MSR_PR)
 
 /*
  * Offsets used by 'ptrace' system call interface.

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)