forked from M-Labs/zynq-rs
1
0
Fork 0

regs: add VBAR

This commit is contained in:
Sebastien Bourdeauducq 2020-04-27 12:34:15 +08:00
parent dfcdeb09ca
commit fefd2a4ceb
1 changed files with 4 additions and 0 deletions

View File

@ -79,6 +79,10 @@ pub struct LR;
def_reg_r!(LR, u32, "mov $0, lr"); def_reg_r!(LR, u32, "mov $0, lr");
def_reg_w!(LR, u32, "mov lr, $0"); def_reg_w!(LR, u32, "mov lr, $0");
pub struct VBAR;
def_reg_r!(VBAR, u32, "mrc p15, 0, $0, c12, c0, 0");
def_reg_w!(VBAR, u32, "mcr p15, 0, $0, c12, c0, 0");
pub struct MPIDR; pub struct MPIDR;
def_reg_r!(MPIDR, u32, "mrc p15, 0, $0, c0, c0, 5"); def_reg_r!(MPIDR, u32, "mrc p15, 0, $0, c0, c0, 5");