add signal api

This commit is contained in:
2025-04-18 17:07:56 +02:00
parent 6c8c158a1f
commit fc79a47957
8 changed files with 84 additions and 21 deletions

View File

@ -49,6 +49,9 @@ struct task *create_task(uint8_t uid)
new_task->next = current_task->next;
new_task->prev = current_task;
current_task->next = new_task;
new_task->signals.pending = SIG_IGN;
return new_task;
}
@ -64,6 +67,7 @@ int8_t create_kernel_task(void)
new_task->cr3 = (uint32_t *)((uint32_t)kernel_pd - HEAP_END);
new_task->prev = new_task;
new_task->next = new_task;
new_task->signals.pending = SIG_IGN;
current_task = new_task;
return 0;
}