Ignore:
File:
1 edited

Legend:

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

    rd9fae235 r516adce  
    5454#include <console/console.h>
    5555#include <udebug/udebug.h>
     56#include <ps/ps.h>
     57#include <ps/load.h>
     58#include <ps/uptime.h>
    5659
    5760/** Dispatch system call */
     
    6063{
    6164        unative_t rc;
     65
     66        /* Do userpace accounting */
     67        thread_update_accounting(true);
    6268
    6369#ifdef CONFIG_UDEBUG
     
    95101        }
    96102#endif
     103
     104        /* Do kernel accounting */
     105        thread_update_accounting(false);
    97106       
    98107        return rc;
     
    153162       
    154163        /* Sysinfo syscalls */
    155         (syshandler_t) sys_sysinfo_get_tag,
    156         (syshandler_t) sys_sysinfo_get_value,
    157         (syshandler_t) sys_sysinfo_get_data_size,
    158         (syshandler_t) sys_sysinfo_get_data,
     164        (syshandler_t) sys_sysinfo_valid,
     165        (syshandler_t) sys_sysinfo_value,
    159166       
    160167        /* Debug calls */
    161168        (syshandler_t) sys_debug_enable_console,
    162169        (syshandler_t) sys_debug_disable_console,
     170
     171        /* Ps calls */
     172        (syshandler_t) sys_ps_get_cpu_info,
     173        (syshandler_t) sys_ps_get_mem_info,
     174        (syshandler_t) sys_ps_get_tasks,
     175        (syshandler_t) sys_ps_get_task_info,
     176        (syshandler_t) sys_ps_get_threads,
     177        (syshandler_t) sys_ps_get_uptime,
     178        (syshandler_t) sys_ps_get_load,
    163179       
    164180        (syshandler_t) sys_ipc_connect_kbox
Note: See TracChangeset for help on using the changeset viewer.