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
|
||||||
BusErrorException,
|
PagefaultException,
|
||||||
/* translation resulted
|
/// Write attempted to a page marked "read-only"
|
||||||
in an invalid physical
|
ReadOnlyException,
|
||||||
address (mis-aligned or
|
/// Translation resulted in an invalid physical address (mis-aligned or out-of-bounds)
|
||||||
out-of-bounds) */
|
BusErrorException,
|
||||||
AddressErrorException, /* Reference that was
|
/// Reference which was not mapped in the address space
|
||||||
not mapped in the address
|
AddressErrorException,
|
||||||
space */
|
/// Integer overflow in add or sub
|
||||||
//OVERFLOW_EXCEPTION, //Integer overflow in add or sub.
|
OverflowException,
|
||||||
//ILLEGALINSTR_EXCEPTION, //Unimplemented or reserved instr.
|
/// Unimplemented or reserved instruction
|
||||||
//NUM_EXCEPTION_TYPES
|
IllegalInstrException,
|
||||||
|
NumExceptionTypes
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user