Ignore:
File:
1 edited

Legend:

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

    rda1bafb r9dae191e  
    5959    unative_t a4, unative_t a5, unative_t a6, unative_t id)
    6060{
     61        unative_t rc;
     62
    6163        /* Do userpace accounting */
    62         irq_spinlock_lock(&THREAD->lock, true);
    6364        thread_update_accounting(true);
    64         irq_spinlock_unlock(&THREAD->lock, true);
    65        
     65
    6666#ifdef CONFIG_UDEBUG
    6767        /*
    6868         * Early check for undebugged tasks. We do not lock anything as this
    6969         * test need not be precise in either direction.
    70          *
    7170         */
    72         if (THREAD->udebug.active)
     71        if (THREAD->udebug.active) {
    7372                udebug_syscall_event(a1, a2, a3, a4, a5, a6, id, 0, false);
     73        }
    7474#endif
    7575       
    76         unative_t rc;
    7776        if (id < SYSCALL_END) {
    7877                rc = syscall_table[id](a1, a2, a3, a4, a5, a6);
     
    8988        if (THREAD->udebug.active) {
    9089                udebug_syscall_event(a1, a2, a3, a4, a5, a6, id, rc, true);
    91                
     90       
    9291                /*
    9392                 * Stopping point needed for tasks that only invoke
     
    9998        }
    10099#endif
    101        
     100
    102101        /* Do kernel accounting */
    103         irq_spinlock_lock(&THREAD->lock, true);
    104102        thread_update_accounting(false);
    105         irq_spinlock_unlock(&THREAD->lock, true);
    106103       
    107104        return rc;
Note: See TracChangeset for help on using the changeset viewer.