From 614b1ef350edd8576fc71292fc89cf79a1810aba Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Mon, 27 Apr 2020 12:49:18 +0800 Subject: [PATCH] regs: add MVBAR and HVBAR --- libcortex_a9/src/regs.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/libcortex_a9/src/regs.rs b/libcortex_a9/src/regs.rs index b71edd1..f3b0977 100644 --- a/libcortex_a9/src/regs.rs +++ b/libcortex_a9/src/regs.rs @@ -83,6 +83,14 @@ 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 MVBAR; +def_reg_r!(MVBAR, u32, "mrc p15, 0, $0, c12, c0, 1"); +def_reg_w!(MVBAR, u32, "mcr p15, 0, $0, c12, c0, 1"); + +pub struct HVBAR; +def_reg_r!(HVBAR, u32, "mrc p15, 4, $0, c12, c0, 0"); +def_reg_w!(HVBAR, u32, "mcr p15, 4, $0, c12, c0, 0"); + pub struct MPIDR; def_reg_r!(MPIDR, u32, "mrc p15, 0, $0, c0, c0, 5");