diff options
Diffstat (limited to 'cp_regs.h')
-rw-r--r-- | cp_regs.h | 21 |
1 files changed, 12 insertions, 9 deletions
@@ -1,5 +1,7 @@ -#include <stdint.h> +#ifndef CP_REGS_H +#define CP_REGS_H +#include <stdint.h> // SCTLR - System Control Register @@ -98,14 +100,15 @@ typedef union // i'm not sure 'interprocess region bits' is the right name, // I'm just guessing (by analogy to RGN -> region bits) -#define CACHEABLE_BIT C -#define INTERPROCESS_REGION_BITS_1 IRGN_1 -#define SHAREABLE_BIT S -#define IMPLEMENTATION_DEFINED_BIT IMP -#define REGION_BITS_1_0 RGN -#define INTERPROCESS_REGION_BITS_0 IRGN_0 -#define NON_OUTER_SHAREABLE_BIT NOS -#define TRANSLATION_TABLE_BASE_ADDRESS Bits_31_14 +#define TTBR_CACHEABLE_BIT C +#define TTBR_INTERPROCESS_REGION_BITS_1 IRGN_1 +#define TTBR_SHAREABLE_BIT S +#define TTBR_IMPLEMENTATION_DEFINED_BIT IMP +#define TTBR_REGION_BITS_1_0 RGN +#define TTBR_INTERPROCESS_REGION_BITS_0 IRGN_0 +#define TTBR_NON_OUTER_SHAREABLE_BIT NOS +#define TTBR_TRANSLATION_TABLE_BASE_ADDRESS Bits_31_14 } fields; } TTBR_t; +#endif // CP_REGS_H |