From fefd2a4ceb7a05ab49094c9767b682bb12e8949d Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Mon, 27 Apr 2020 12:34:15 +0800 Subject: [PATCH] regs: add VBAR --- libcortex_a9/src/regs.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libcortex_a9/src/regs.rs b/libcortex_a9/src/regs.rs index c8aab19..b71edd1 100644 --- a/libcortex_a9/src/regs.rs +++ b/libcortex_a9/src/regs.rs @@ -79,6 +79,10 @@ pub struct LR; def_reg_r!(LR, u32, "mov $0, lr"); 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; def_reg_r!(MPIDR, u32, "mrc p15, 0, $0, c0, c0, 5");