arm/archconst: use values defined in armreg.h
This commit is contained in:
parent
3b5ef1d60f
commit
612cc57722
|
|
@ -21,24 +21,15 @@
|
||||||
#define INTERRUPT_VECTOR 6
|
#define INTERRUPT_VECTOR 6
|
||||||
#define FAST_INTERRUPT_VECTOR 7
|
#define FAST_INTERRUPT_VECTOR 7
|
||||||
|
|
||||||
|
/* Data abort helper */
|
||||||
|
#define is_align_fault(fault_status) \
|
||||||
|
((fault_status) == FAULT_ALIGN_0)
|
||||||
|
|
||||||
/* Known fault status bits */
|
#define is_trans_fault(fault_status) \
|
||||||
#define DFSR_FS_ALIGNMENT_FAULT 0x01
|
(((fault_status) == FAULT_TRANS_S) || ((fault_status) == FAULT_TRANS_P))
|
||||||
#define DFSR_FS_TRANSLATION_FAULT_PAGE 0x07
|
|
||||||
#define DFSR_FS_TRANSLATION_FAULT_SECTION 0x05
|
|
||||||
#define DFSR_FS_PERMISSION_FAULT_PAGE 0x0F
|
|
||||||
#define DFSR_FS_PERMISSION_FAULT_SECTION 0x0D
|
|
||||||
|
|
||||||
#define is_alignment_fault(fault_status) \
|
#define is_perm_fault(fault_status) \
|
||||||
((fault_status) == DFSR_FS_ALIGNMENT_FAULT)
|
(((fault_status) == FAULT_PERM_S) || ((fault_status) == FAULT_PERM_P))
|
||||||
|
|
||||||
#define is_translation_fault(fault_status) \
|
|
||||||
(((fault_status) == DFSR_FS_TRANSLATION_FAULT_PAGE) \
|
|
||||||
|| ((fault_status) == DFSR_FS_TRANSLATION_FAULT_SECTION))
|
|
||||||
|
|
||||||
#define is_permission_fault(fault_status) \
|
|
||||||
(((fault_status) == DFSR_FS_PERMISSION_FAULT_PAGE) \
|
|
||||||
|| ((fault_status) == DFSR_FS_PERMISSION_FAULT_SECTION))
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* defines how many bytes are reserved at the top of the kernel stack for global
|
* defines how many bytes are reserved at the top of the kernel stack for global
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user