feat: initial locking etc.

This commit is contained in:
2021-03-01 21:07:53 +01:00
parent ebe006a8ba
commit 990b850c43
14 changed files with 427 additions and 14 deletions

View File

@@ -12,10 +12,17 @@ void syscall_handle(isr_registers_t *registers) {
task_start_first();
break;
case SYSCALL_YIELD_JOB:
task_ensure_enabled();
task_switch_next();
break;
case SYSCALL_YIELD_IRQ:
task_ensure_enabled();
task_wait_irq(registers->ebx);
break;
case SYSCALL_SUSPEND:
task_ensure_enabled();
task_suspend();
break;
default:
break;
}