| 979 | // why re enabling interrupt here ? Because an interrupt can occur between the lock acquire and |
| 980 | // int 101 and the interrupt won't be able to handle the lock. |
| 981 | |
| 982 | // scheduler_lock.write_acquire(, int line); |
| 983 | asm volatile("int $101" ::: "memory"); |
| 984 | arch::amd64::interrupt_release(); |
| 985 | // Interrupts remain disabled (IF=0 from the saved RFLAGS at the int $101 point). |
| 986 | // The syscall return path (iretq) restores the user RFLAGS with IF=1. |
| 987 | // |
no outgoing calls
no test coverage detected