2 ARM architecture bit flags and other definitions
3 Copyright (c) 2010 TJ <linux@tjworld.net>
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License version 2 as published by
7 the Free Software Foundation.
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
14 You should have received a copy of the GNU General Public License along
15 with this program; if not, write to the Free Software Foundation, Inc.,
16 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17 If not, see <http://www.gnu.org/licenses/>.
21 SOURCE: HTC Vision Linux kernel 2.6.32 source
22 SOURCE_FILE: arch/arm/include/asm/ptrace.h
23 SOURCE_URL: http://dl3.htc.com/RomCode/Source_and_Binaries/vision-2.6.32-g814e0a1.tar.gz
24 SOURCE_FOR: ARM bit flags
28 Program Status Register (PSR) bits
29 see ARMv7 Architecture Reference Manual, B1.4.2 "The special-purpose program status registers"
32 #define USR26_MODE 0x00000000 // Interrupt Program Status Register
33 #define FIQ26_MODE 0x00000001
34 #define IRQ26_MODE 0x00000002
35 #define SVC26_MODE 0x00000003
36 #define USR_MODE 0x00000010 // Execution Program Status Register
37 #define FIQ_MODE 0x00000011 // ICI/IT bits
38 #define IRQ_MODE 0x00000012
39 #define SVC_MODE 0x00000013
40 #define ABT_MODE 0x00000017
41 #define UND_MODE 0x0000001b
42 #define SYSTEM_MODE 0x0000001f
43 #define MODE32_BIT 0x00000010
44 #define MODE_MASK 0x0000001f
45 #define PSR_T_BIT 0x00000020
46 #define PSR_F_BIT 0x00000040
47 #define PSR_I_BIT 0x00000080
48 #define PSR_A_BIT 0x00000100
49 #define PSR_E_BIT 0x00000200
50 #define PSR_J_BIT 0x01000000
51 #define PSR_Q_BIT 0x08000000 // Application Program Status Register
52 #define PSR_V_BIT 0x10000000
53 #define PSR_C_BIT 0x20000000
54 #define PSR_Z_BIT 0x40000000
55 #define PSR_N_BIT 0x80000000