Fixed incorrect flow control
This commit is contained in:
parent
3685bb6590
commit
b96808b55f
@ -67,9 +67,9 @@ fn syscall(machine: &mut Machine, system: &mut System) -> Result<MachineOk, Mach
|
|||||||
SC_EXIT => {
|
SC_EXIT => {
|
||||||
let th = match &system.get_thread_manager().g_current_thread {
|
let th = match &system.get_thread_manager().g_current_thread {
|
||||||
Some(th) => th,
|
Some(th) => th,
|
||||||
None => Err("Current thread is None".into())
|
None => Err("Current thread is None")?
|
||||||
}?;
|
};
|
||||||
system.get_thread_manager().thread_finish(machine, th);
|
system.get_thread_manager().thread_finish(machine, *th);
|
||||||
Ok(MachineOk::Ok)
|
Ok(MachineOk::Ok)
|
||||||
},
|
},
|
||||||
SC_EXEC => todo!(),
|
SC_EXEC => todo!(),
|
||||||
|
Loading…
Reference in New Issue
Block a user