Working on scheduling

This commit is contained in:
ssimnb 2026-02-02 17:42:52 +01:00
parent cfcb806ebf
commit edfbfdad14
9 changed files with 19 additions and 39 deletions

View file

@ -239,7 +239,10 @@ void interrupt_handler(interrupt_frame *r){
if(r->int_no == 69 && get_cpu_struct_initialized()
&& get_cpu_struct()->scheduler_initialized){
enter_scheduler();
if(get_cpu_struct()->current_process->state == RUNNING){
enter_scheduler();
}
}
if(r->int_no == 70){