Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/syscall/syscall.c

    rb93d637 r5bcf1f9  
    4141#include <proc/program.h>
    4242#include <mm/as.h>
    43 #include <mm/page.h>
    4443#include <print.h>
    4544#include <arch.h>
     
    8786        } else {
    8887                printf("Task %" PRIu64": Unknown syscall %#" PRIxn, TASK->taskid, id);
    89                 task_kill(TASK->taskid);
    90                 thread_exit();
     88                task_kill_self(true);
    9189        }
    9290       
     
    132130        (syshandler_t) sys_task_set_name,
    133131        (syshandler_t) sys_task_kill,
     132        (syshandler_t) sys_task_exit,
    134133        (syshandler_t) sys_program_spawn_loader,
    135134       
     
    145144        (syshandler_t) sys_as_area_destroy,
    146145       
    147         /* Page mapping related syscalls. */
    148         (syshandler_t) sys_page_find_mapping,
    149        
    150146        /* IPC related syscalls. */
    151147        (syshandler_t) sys_ipc_call_sync_fast,
     
    160156        (syshandler_t) sys_ipc_poke,
    161157        (syshandler_t) sys_ipc_hangup,
    162         (syshandler_t) sys_ipc_register_irq,
    163         (syshandler_t) sys_ipc_unregister_irq,
    164158        (syshandler_t) sys_ipc_connect_kbox,
    165159       
     
    175169        (syshandler_t) sys_physmem_map,
    176170        (syshandler_t) sys_iospace_enable,
     171        (syshandler_t) sys_register_irq,
     172        (syshandler_t) sys_unregister_irq,
    177173       
    178174        /* Sysinfo syscalls */
Note: See TracChangeset for help on using the changeset viewer.