syscall getting interrupted by timer!!! why???
Posted: Mon Sep 07, 2020 4:39 am
Ok, I moved my fork into syscall, by creating a syscall_fork stub...
the syscall_fork was treated as a normal interrupt call (as opposed to trap call)
but during my debugging for weird page faults... I discover that my 0x80 syscall is interrupted
by timer_handler, I have removed the cli/sti inline assembly call because cli and sti was in the
stub as shown below... yet the timer handler (and subsequent context switching is still invoked)
why? I thought the isr128 stub has cli and sti in it already..!!!!!
the syscall_fork was treated as a normal interrupt call (as opposed to trap call)
but during my debugging for weird page faults... I discover that my 0x80 syscall is interrupted
by timer_handler, I have removed the cli/sti inline assembly call because cli and sti was in the
stub as shown below... yet the timer handler (and subsequent context switching is still invoked)
why? I thought the isr128 stub has cli and sti in it already..!!!!!
isr128:
cli
push $0
push $128
jmp isr_common_stub