Project now builds
This commit is contained in:
@ -34,6 +34,7 @@ use super::error::MachineOk;
|
||||
/// Textual names of the exceptions that can be generated by user program
|
||||
/// execution, for debugging purpose.
|
||||
/// todo: is this really supposed to stand in machine.rs?
|
||||
#[derive(Debug)]
|
||||
pub enum ExceptionType {
|
||||
/// Everything ok
|
||||
NoException,
|
||||
@ -229,7 +230,7 @@ impl Machine {
|
||||
pub fn raise_exception(&mut self, exception: ExceptionType, address : u64, system: &mut System) -> Result<MachineOk, MachineError>{
|
||||
self.set_status(MachineStatus::SystemMode);
|
||||
// Handle the interruption
|
||||
match exception::call(exception, self, system) {
|
||||
match exception::call(&exception, self, system) {
|
||||
Ok(MachineOk::Shutdown) => {
|
||||
self.set_status(MachineStatus::UserMode);
|
||||
return Ok(MachineOk::Shutdown);
|
||||
|
Reference in New Issue
Block a user