Documented ExceptionType
This commit is contained in:
parent
21159d3d98
commit
cc6aab7c3f
@ -6,27 +6,26 @@ use super::{decode::{Instruction, decode}, interrupt::Interrupt};
|
|||||||
use super::global::*;
|
use super::global::*;
|
||||||
use std::fs::File;
|
use std::fs::File;
|
||||||
|
|
||||||
|
/// Exceptions
|
||||||
/*
|
/// todo: is this really supposed to stand in machine.rs?
|
||||||
* Decommenter la variant si il est utilisé quelque part
|
|
||||||
*/
|
|
||||||
pub enum ExceptionType {
|
pub enum ExceptionType {
|
||||||
//Everything ok!
|
/// Everything ok
|
||||||
NoException,
|
NoException,
|
||||||
//SYSCALL_EXCEPTION,//A program executed a system call.
|
/// A program executed a system call
|
||||||
PagefaultException,//Page fault exception
|
SyscallException,
|
||||||
ReadOnlyException,//Write attempted to a page marked "read-only" */
|
/// Page fault exception
|
||||||
|
PagefaultException,
|
||||||
|
/// Write attempted to a page marked "read-only"
|
||||||
|
ReadOnlyException,
|
||||||
|
/// Translation resulted in an invalid physical address (mis-aligned or out-of-bounds)
|
||||||
BusErrorException,
|
BusErrorException,
|
||||||
/* translation resulted
|
/// Reference which was not mapped in the address space
|
||||||
in an invalid physical
|
AddressErrorException,
|
||||||
address (mis-aligned or
|
/// Integer overflow in add or sub
|
||||||
out-of-bounds) */
|
OverflowException,
|
||||||
AddressErrorException, /* Reference that was
|
/// Unimplemented or reserved instruction
|
||||||
not mapped in the address
|
IllegalInstrException,
|
||||||
space */
|
NumExceptionTypes
|
||||||
//OVERFLOW_EXCEPTION, //Integer overflow in add or sub.
|
|
||||||
//ILLEGALINSTR_EXCEPTION, //Unimplemented or reserved instr.
|
|
||||||
//NUM_EXCEPTION_TYPES
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user