patch-2.4.0-test9 linux/include/asm-arm/proc-armv/ptrace.h

Next file: linux/include/asm-arm/proc-armv/shmparam.h
Previous file: linux/include/asm-arm/proc-armv/processor.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.0-test8/linux/include/asm-arm/proc-armv/ptrace.h linux/include/asm-arm/proc-armv/ptrace.h
@@ -1,7 +1,11 @@
 /*
- * linux/include/asm-arm/proc-armv/ptrace.h
+ *  linux/include/asm-arm/proc-armv/ptrace.h
  *
- * Copyright (C) 1996-1999 Russell King
+ *  Copyright (C) 1996-1999 Russell King
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
  */
 #ifndef __ASM_PROC_PTRACE_H
 #define __ASM_PROC_PTRACE_H
@@ -18,6 +22,7 @@
 #define UND_MODE	0x1b
 #define SYSTEM_MODE	0x1f
 #define MODE_MASK	0x1f
+#define T_BIT		0x20
 #define F_BIT		0x40
 #define I_BIT		0x80
 #define CC_V_BIT	(1 << 28)
@@ -58,6 +63,9 @@
 
 #define user_mode(regs)	\
 	(((regs)->ARM_cpsr & 0xf) == 0)
+
+#define thumb_mode(regs) \
+	(((regs)->ARM_cpsr & T_BIT))
 
 #define processor_mode(regs) \
 	((regs)->ARM_cpsr & MODE_MASK)

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