kernel/arm: clean up arch-specific defines
* align fault syndrome and fault address register naming with ARM Architecture Reference Manual (i.e. IFSR, DFSR, IFAR, DFAR) * move PSR bitfield defines to arch_cpu_defs.h Change-Id: I813045eec335ffbdd75270ad5a1afb2f222f73c8 Reviewed-on: https://review.haiku-os.org/c/haiku/+/5618 Reviewed-by: Fredrik Holmqvist <[email protected]> Tested-by: Commit checker robot <[email protected]>
This commit is contained in:
@@ -77,8 +77,11 @@ typedef struct arch_cpu_info {
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
extern addr_t arm_get_far(void);
|
||||
extern int32 arm_get_fsr(void);
|
||||
extern uint32 arm_get_dfsr(void);
|
||||
extern uint32 arm_get_ifsr(void);
|
||||
extern addr_t arm_get_dfar(void);
|
||||
extern addr_t arm_get_ifar(void);
|
||||
|
||||
extern addr_t arm_get_fp(void);
|
||||
|
||||
extern int mmu_read_c1(void);
|
||||
|
||||
@@ -13,7 +13,11 @@
|
||||
|
||||
#define CPSR_MODE_MASK 0x1f
|
||||
#define CPSR_MODE_USR 0x10
|
||||
#define CPSR_MODE_FIQ 0x11
|
||||
#define CPSR_MODE_IRQ 0x12
|
||||
#define CPSR_MODE_SVC 0x13
|
||||
#define CPSR_MODE_ABT 0x17
|
||||
#define CPSR_MODE_UND 0x1b
|
||||
#define CPSR_MODE_SYS 0x1f
|
||||
|
||||
#define CPSR_T 0x20
|
||||
|
||||
Reference in New Issue
Block a user