1 #ifndef AROS_ARM_CPUCONTEXT_H
2 #define AROS_ARM_CPUCONTEXT_H
5 Copyright © 1995-2010, The AROS Development Team. All rights reserved.
8 Desc: CPU context definition for ARM processors
12 struct ExceptionContext
14 ULONG r
[12]; /* General purpose registers */
20 UWORD Flags
; /* Currently reserved */
21 UBYTE FPUType
; /* FPU type (see below) */
22 UBYTE Reserved
; /* Unused */
23 APTR fpuContext
; /* Pointer to FPU context area */
27 #define CPUMODE_USER 0x10
28 #define CPUMODE_FIQ 0x11
29 #define CPUMODE_IRQ 0x12
30 #define CPUMODE_SUPERVISOR 0x13
31 #define CPUMODE_ABORT 0x17
32 #define CPUMODE_UNDEF 0x1B
33 #define CPUMODE_SYSTEM 0x1F
35 #define CPUMODE_MASK 0x1F
37 #define CPUMODE_IRQENABLED (1 << 7)
42 ECF_FPU
= 1<<0 /* FPU data is present */