xous: add definitions for Exception handlers

Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
Sean Cross 2021-08-05 16:17:47 +08:00
parent fdf3c12b85
commit 757a5c0f5e

View file

@ -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,