patch-2.4.0-test3 linux/include/asm-s390/ptrace.h

Next file: linux/include/asm-s390/socket.h
Previous file: linux/include/asm-s390/fcntl.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.0-test2/linux/include/asm-s390/ptrace.h linux/include/asm-s390/ptrace.h
@@ -141,7 +141,7 @@
 typedef struct pt_regs pt_regs;
 
 #ifdef __KERNEL__
-#define user_mode(regs) ((regs)->psw.mask & PSW_PROBLEM_STATE)
+#define user_mode(regs) (((regs)->psw.mask & PSW_PROBLEM_STATE) != 0)
 #define instruction_pointer(regs) ((regs)->psw.addr)
 
 struct thread_struct;

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