Ignore:
File:
1 edited

Legend:

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

    r43b8c65 r8820544  
    5050#include <synch/futex.h>
    5151#include <synch/smc.h>
    52 #include <synch/smp_memory_barrier.h>
    5352#include <ddi/ddi.h>
    5453#include <ipc/event.h>
     
    5756#include <console/console.h>
    5857#include <udebug/udebug.h>
     58#include <log.h>
    5959
    6060/** Dispatch system call */
     
    8787                rc = syscall_table[id](a1, a2, a3, a4, a5, a6);
    8888        } else {
    89                 printf("Task %" PRIu64": Unknown syscall %#" PRIxn, TASK->taskid, id);
     89                log(LF_OTHER, LVL_ERROR,
     90                    "Task %" PRIu64": Unknown syscall %#" PRIxn, TASK->taskid, id);
    9091                task_kill_self(true);
    9192        }
     
    121122syshandler_t syscall_table[SYSCALL_END] = {
    122123        /* System management syscalls. */
    123         (syshandler_t) sys_klog,
     124        (syshandler_t) sys_kio,
    124125        (syshandler_t) sys_tls_set,
    125126       
     
    141142        (syshandler_t) sys_futex_wakeup,
    142143        (syshandler_t) sys_smc_coherence,
    143         (syshandler_t) sys_smp_memory_barrier,
    144        
    145144       
    146145        /* Address space related syscalls. */
     
    166165       
    167166        /* Event notification syscalls. */
    168         (syshandler_t) sys_event_subscribe,
    169         (syshandler_t) sys_event_unmask,
     167        (syshandler_t) sys_ipc_event_subscribe,
     168        (syshandler_t) sys_ipc_event_unsubscribe,
     169        (syshandler_t) sys_ipc_event_unmask,
    170170       
    171171        /* Capabilities related syscalls. */
     
    181181        (syshandler_t) sys_iospace_enable,
    182182        (syshandler_t) sys_iospace_disable,
    183         (syshandler_t) sys_irq_register,
    184         (syshandler_t) sys_irq_unregister,
     183       
     184        (syshandler_t) sys_ipc_irq_subscribe,
     185        (syshandler_t) sys_ipc_irq_unsubscribe,
    185186       
    186187        /* Sysinfo syscalls. */
     
    193194       
    194195        /* Kernel console syscalls. */
    195         (syshandler_t) sys_debug_activate_console
     196        (syshandler_t) sys_debug_console,
     197       
     198        (syshandler_t) sys_klog,
    196199};
    197200
Note: See TracChangeset for help on using the changeset viewer.