Fixed sleep
This commit is contained in:
parent
fdb77277a7
commit
437c78d374
@ -352,7 +352,7 @@ void syscall(frame_struct* frame) {
|
||||
|
||||
case 18: { // sleep
|
||||
Global::currentProc->state = Suspended;
|
||||
Timer::register_event(frame->ebx, &awaken, (void*)Global::currentProc);
|
||||
Timer::register_event(frame->ebx, &awaken, (void*)Global::currentProc, true);
|
||||
context_switch(frame);
|
||||
break;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user