Feat: POSIX signal

This commit is contained in:
2025-05-04 20:38:25 +08:00
parent 8d1045f20d
commit d31f5e02fe
9 changed files with 171 additions and 33 deletions

View File

@@ -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();
}