patch-2.3.11 linux/include/asm-alpha/ptrace.h
Next file: linux/include/asm-alpha/smp.h
Previous file: linux/include/asm-alpha/processor.h
Back to the patch index
Back to the overall index
-  Lines: 9
-  Date:
Mon Jul 12 07:49:36 1999
-  Orig file: 
v2.3.10/linux/include/asm-alpha/ptrace.h
-  Orig date: 
Mon Apr  7 11:35:31 1997
diff -u --recursive --new-file v2.3.10/linux/include/asm-alpha/ptrace.h linux/include/asm-alpha/ptrace.h
@@ -67,7 +67,7 @@
 };
 
 #ifdef __KERNEL__
-#define user_mode(regs) ((regs)->ps & 8)
+#define user_mode(regs) (((regs)->ps & 8) != 0)
 #define instruction_pointer(regs) ((regs)->pc)
 extern void show_regs(struct pt_regs *);
 #endif
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)