cpu_regs.h: Add IPI and VM timer reg defines

Signed-off-by: Hector Martin <marcan@marcan.st>
This commit is contained in:
Hector Martin 2021-05-25 19:54:55 +09:00
parent e484d6df70
commit 48c7fc725b

View file

@ -160,3 +160,17 @@
#define SYS_IMP_APL_VBAR_GL12 sys_reg(3, 6, 15, 9, 2) #define SYS_IMP_APL_VBAR_GL12 sys_reg(3, 6, 15, 9, 2)
#define SYS_IMP_APL_SP_GL12 sys_reg(3, 6, 15, 10, 0) #define SYS_IMP_APL_SP_GL12 sys_reg(3, 6, 15, 10, 0)
/* VM registers */
#define SYS_VM_TMR_FIQ_ENA_EL2 sys_reg(3, 5, 15, 1, 3)
#define VM_TMR_FIQ_ENA_ENA_V BIT(0)
#define VM_TMR_FIQ_ENA_ENA_P BIT(1)
/* IPI registers */
#define SYS_IPI_RR_LOCAL_EL1 sys_reg(3, 5, 15, 0, 0)
#define SYS_IPI_RR_GLOBAL_EL1 sys_reg(3, 5, 15, 0, 1)
#define SYS_IPI_SR_EL1 sys_reg(3, 5, 15, 1, 1)
#define IPI_SR_PENDING BIT(0)
#define SYS_IPI_CR_EL1 sys_reg(3, 5, 15, 3, 1)