mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-20 09:03:28 +00:00
xous: add definitions for Exception handlers
Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
parent
fdf3c12b85
commit
757a5c0f5e
1 changed files with 33 additions and 19 deletions
|
|
@ -31,7 +31,7 @@ pub const KERNEL_LEN: u32 = 0x0038_0000; // max kernel length
|
||||||
|
|
||||||
pub const PDDB_LOC: u32 = 0x00D0_0000; // PDDB start
|
pub const PDDB_LOC: u32 = 0x00D0_0000; // PDDB start
|
||||||
pub const PDDB_LEN: u32 = 0x0530_0000; // this reserves space for testing structures
|
pub const PDDB_LEN: u32 = 0x0530_0000; // this reserves space for testing structures
|
||||||
// pub const PDDB_LEN: u32 = 0x0728_0000; // length without testing structure
|
// pub const PDDB_LEN: u32 = 0x0728_0000; // length without testing structure
|
||||||
|
|
||||||
pub const EC_REGION_LOC: u32 = 0x07F8_0000; // EC update staging area
|
pub const EC_REGION_LOC: u32 = 0x07F8_0000; // EC update staging area
|
||||||
pub const EC_WF200_PKG_LOC: u32 = 0x07F8_0000;
|
pub const EC_WF200_PKG_LOC: u32 = 0x07F8_0000;
|
||||||
|
|
@ -40,6 +40,20 @@ pub const EC_FW_PKG_LOC: u32 = 0x07FC_E000;
|
||||||
pub const EC_FW_PKG_LEN: u32 = 0x0003_2000;
|
pub const EC_FW_PKG_LEN: u32 = 0x0003_2000;
|
||||||
pub const EC_REGION_LEN: u32 = 0x0008_0000;
|
pub const EC_REGION_LEN: u32 = 0x0008_0000;
|
||||||
|
|
||||||
|
#[repr(usize)]
|
||||||
|
pub enum ExceptionType {
|
||||||
|
InstructionAddressMisaligned = 0,
|
||||||
|
InstructionAccessFault = 1,
|
||||||
|
IllegalInstruction = 2,
|
||||||
|
LoadAddressMisaligned = 3,
|
||||||
|
LoadAccessFault = 4,
|
||||||
|
StoreAddressMisaligned = 5,
|
||||||
|
StoreAccessFault = 6,
|
||||||
|
InstructionPageFault = 7,
|
||||||
|
LoadPageFault = 8,
|
||||||
|
StorePageFault = 9,
|
||||||
|
}
|
||||||
|
|
||||||
#[derive(Debug, PartialEq, Eq, Ord, PartialOrd, Copy, Clone)]
|
#[derive(Debug, PartialEq, Eq, Ord, PartialOrd, Copy, Clone)]
|
||||||
pub struct MessageSender {
|
pub struct MessageSender {
|
||||||
data: usize,
|
data: usize,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue