tasking: implement task_kill function, thanks deepseek

This commit is contained in:
2025-06-23 00:25:23 +03:00
parent 70d6aacb91
commit c047dd687b
6 changed files with 86 additions and 77 deletions
+4 -1
View File
@@ -49,8 +49,11 @@ const char* flags_to_mode_str(int flags) {
int sys_exit(TrapFrame *tf)
{
int error_code = tf->ebx;
printf("killing task\n");
task_kill(current);
asm("sti");
while(1){}
printf("wtf??");
return error_code;
}