Ignore:
File:
1 edited

Legend:

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

    r2fa10f6 r9510be2  
    5959    unative_t a4, unative_t a5, unative_t a6, unative_t id)
    6060{
    61         /* Do userpace accounting */
    62         irq_spinlock_lock(&THREAD->lock, true);
    63         thread_update_accounting(true);
    64         irq_spinlock_unlock(&THREAD->lock, true);
    65        
     61        unative_t rc;
     62
    6663#ifdef CONFIG_UDEBUG
    6764        /*
    6865         * Early check for undebugged tasks. We do not lock anything as this
    6966         * test need not be precise in either direction.
    70          *
    7167         */
    72         if (THREAD->udebug.active)
     68        if (THREAD->udebug.active) {
    7369                udebug_syscall_event(a1, a2, a3, a4, a5, a6, id, 0, false);
     70        }
    7471#endif
    7572       
    76         unative_t rc;
    7773        if (id < SYSCALL_END) {
    7874                rc = syscall_table[id](a1, a2, a3, a4, a5, a6);
     
    8985        if (THREAD->udebug.active) {
    9086                udebug_syscall_event(a1, a2, a3, a4, a5, a6, id, rc, true);
    91                
     87       
    9288                /*
    9389                 * Stopping point needed for tasks that only invoke
     
    9995        }
    10096#endif
    101        
    102         /* Do kernel accounting */
    103         irq_spinlock_lock(&THREAD->lock, true);
    104         thread_update_accounting(false);
    105         irq_spinlock_unlock(&THREAD->lock, true);
    10697       
    10798        return rc;
     
    147138        (syshandler_t) sys_ipc_register_irq,
    148139        (syshandler_t) sys_ipc_unregister_irq,
    149        
     140
    150141        /* Event notification syscalls. */
    151142        (syshandler_t) sys_event_subscribe,
     
    159150        (syshandler_t) sys_physmem_map,
    160151        (syshandler_t) sys_iospace_enable,
     152        (syshandler_t) sys_preempt_control,
    161153       
    162154        /* Sysinfo syscalls */
    163         (syshandler_t) sys_sysinfo_get_tag,
    164         (syshandler_t) sys_sysinfo_get_value,
    165         (syshandler_t) sys_sysinfo_get_data_size,
    166         (syshandler_t) sys_sysinfo_get_data,
     155        (syshandler_t) sys_sysinfo_valid,
     156        (syshandler_t) sys_sysinfo_value,
    167157       
    168158        /* Debug calls */
Note: See TracChangeset for help on using the changeset viewer.