parent
d6a54496f0
commit
a59a7fbe9a
@ -0,0 +1,31 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) 2018 by the author(s)
|
||||||
|
*
|
||||||
|
* =============================================================================
|
||||||
|
*
|
||||||
|
* Licensed under either of
|
||||||
|
* - Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
|
||||||
|
* - MIT License (http://opensource.org/licenses/MIT)
|
||||||
|
* at your option.
|
||||||
|
*
|
||||||
|
* =============================================================================
|
||||||
|
*
|
||||||
|
* Author(s):
|
||||||
|
* - Andre Richter <andre.o.richter@gmail.com>
|
||||||
|
*/
|
||||||
|
|
||||||
|
//! Fault Address Register - EL1
|
||||||
|
//!
|
||||||
|
//! Holds the faulting Virtual Address for all synchronous Instruction or Data
|
||||||
|
//! Abort, PC alignment fault and Watchpoint exceptions that are taken to EL1.
|
||||||
|
|
||||||
|
use register::cpu::RegisterReadWrite;
|
||||||
|
|
||||||
|
pub struct Reg;
|
||||||
|
|
||||||
|
impl RegisterReadWrite<u64, ()> for Reg {
|
||||||
|
sys_coproc_read_raw!(u64, "FAR_EL1");
|
||||||
|
sys_coproc_write_raw!(u64, "FAR_EL1");
|
||||||
|
}
|
||||||
|
|
||||||
|
pub static FAR_EL1: Reg = Reg {};
|
Loading…
Reference in new issue