patch-2.4.0-test12 linux/include/asm-arm/proc-armv/ptrace.h
Next file: linux/include/asm-arm/proc-armv/system.h
Previous file: linux/include/asm-arm/proc-armv/processor.h
Back to the patch index
Back to the overall index
- Lines: 22
- Date:
Mon Nov 27 17:07:59 2000
- Orig file:
v2.4.0-test11/linux/include/asm-arm/proc-armv/ptrace.h
- Orig date:
Sun Oct 8 10:50:35 2000
diff -u --recursive --new-file v2.4.0-test11/linux/include/asm-arm/proc-armv/ptrace.h linux/include/asm-arm/proc-armv/ptrace.h
@@ -10,6 +10,8 @@
#ifndef __ASM_PROC_PTRACE_H
#define __ASM_PROC_PTRACE_H
+#include <linux/config.h>
+
#define USR26_MODE 0x00
#define FIQ26_MODE 0x01
#define IRQ26_MODE 0x02
@@ -64,8 +66,12 @@
#define user_mode(regs) \
(((regs)->ARM_cpsr & 0xf) == 0)
+#ifdef CONFIG_ARM_THUMB
#define thumb_mode(regs) \
(((regs)->ARM_cpsr & T_BIT))
+#else
+#define thumb_mode(regs) (0)
+#endif
#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)