Feat: POSIX signal
This commit is contained in:
@@ -41,5 +41,11 @@ void timer_irq_handler(void)
|
||||
uint64_t cntfrq_el0;
|
||||
R_SYSREG(cntfrq_el0, cntfrq_el0);
|
||||
W_SYSREG(cntp_tval_el0, cntfrq_el0 >> 5);
|
||||
|
||||
thread_t *th = get_current();
|
||||
for (int32_t i = 0; i < SIGNAL_NUM; ++i) {
|
||||
if (th->process->sigstate[i])
|
||||
run_signal(i);
|
||||
}
|
||||
schedule();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user