armOS
0.1.0
Minimal ARM Operating System for the Raspberry Pi - Documentation generated for Pi 4.
sysregs.h
Go to the documentation of this file.
1
8
#ifndef SYSREGS_H
9
#define SYSREGS_H
10
20
#define SCTLR_RESERVED (3 << 28) | (3 << 22) | (1 << 20) | (1 << 11)
21
22
#define SCTLR_EE_LITTLE_ENDIAN (0 << 25)
23
24
#define SCTLR_EOE_LITTLE_ENDIAN (0 << 24)
25
26
#define SCTLR_I_CACHE_DISABLED (0 << 12)
27
28
#define SCTLR_D_CACHE_DISABLED (0 << 2)
29
30
#define SCTLR_MMU_DISABLED (0 << 0)
31
32
#define SCTLR_MMU_ENABLED (1 << 0)
33
34
#define SCTLR_VALUE_MMU_DISABLED (SCTLR_RESERVED | SCTLR_EE_LITTLE_ENDIAN | SCTLR_I_CACHE_DISABLED | SCTLR_D_CACHE_DISABLED | SCTLR_MMU_DISABLED)
35
47
#define HCR_RW (1 << 31)
48
49
#define HCR_VALUE HCR_RW
50
63
#define SCR_RESERVED (3 << 4)
64
65
#define SCR_RW (1 << 10)
66
68
#define SCR_NS (1 << 0)
69
70
#define SCR_VALUE (SCR_RESERVED | SCR_RW | SCR_NS)
71
85
#define SPSR_MASK_ALL (7 << 6)
86
87
#define SPSR_EL1h (5 << 0)
88
89
#define SPSR_VALUE (SPSR_MASK_ALL | SPSR_EL1h)
90
92
#endif
include
armv8-a
sysregs.h
Generated by
1.8.17