mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-22 09:23:16 +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
|
|
@ -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_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)]
|
||||
pub struct MessageSender {
|
||||
data: usize,
|
||||
|
|
|
|||
Loading…
Reference in a new issue