Working on scheduling
This commit is contained in:
parent
cfcb806ebf
commit
edfbfdad14
9 changed files with 19 additions and 39 deletions
|
|
@ -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){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue