1
0
forked from Rativel/BurritOS

print exit code when using debug machine, add matmult

This commit is contained in:
Quentin Legot
2023-05-09 23:16:16 +02:00
parent 15a04fb9da
commit 98fe63f487
4 changed files with 65 additions and 4 deletions

View File

@@ -138,7 +138,8 @@ fn syscall(machine: &mut Machine, system: &mut System) -> Result<MachineOk, Mach
Some(th) => th.clone(),
None => Err("Current thread is None")?
};
system.get_thread_manager().thread_finish(machine, th);
let code = machine.read_int_register(10);
system.get_thread_manager().thread_finish(machine, th, code);
Ok(MachineOk::Ok)
},
SC_EXEC => todo!(),