Changeset ad7a6c9 in mainline for kernel/generic/src/syscall/syscall.c


Ignore:
Timestamp:
2011-03-30T13:10:24Z (14 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
4ae90f9
Parents:
6e50466 (diff), d6b81941 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge mainline changes

File:
1 edited

Legend:

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

    r6e50466 rad7a6c9  
    4545#include <debug.h>
    4646#include <ddi/device.h>
     47#include <interrupt.h>
    4748#include <ipc/sysipc.h>
    4849#include <synch/futex.h>
     
    6667#ifdef CONFIG_UDEBUG
    6768        /*
     69         * An istate_t-compatible record was created on the stack by the
     70         * low-level syscall handler. This is the userspace space state
     71         * structure.
     72         */
     73        THREAD->udebug.uspace_state = istate_get(THREAD);
     74
     75        /*
    6876         * Early check for undebugged tasks. We do not lock anything as this
    6977         * test need not be precise in either direction.
    70          *
    7178         */
    7279        if (THREAD->udebug.active)
     
    7986        } else {
    8087                printf("Task %" PRIu64": Unknown syscall %#" PRIxn, TASK->taskid, id);
    81                 task_kill(TASK->taskid);
    82                 thread_exit();
     88                task_kill_self(true);
    8389        }
    8490       
     
    98104                udebug_stoppable_end();
    99105        }
     106
     107        /* Clear userspace state pointer */
     108        THREAD->udebug.uspace_state = NULL;
    100109#endif
    101110       
     
    120129        (syshandler_t) sys_task_get_id,
    121130        (syshandler_t) sys_task_set_name,
     131        (syshandler_t) sys_task_kill,
     132        (syshandler_t) sys_task_exit,
    122133        (syshandler_t) sys_program_spawn_loader,
    123134       
     
    132143        (syshandler_t) sys_as_area_change_flags,
    133144        (syshandler_t) sys_as_area_destroy,
     145        (syshandler_t) sys_as_get_unmapped_area,
    134146       
    135147        /* IPC related syscalls. */
     
    145157        (syshandler_t) sys_ipc_poke,
    146158        (syshandler_t) sys_ipc_hangup,
    147         (syshandler_t) sys_ipc_register_irq,
    148         (syshandler_t) sys_ipc_unregister_irq,
    149159        (syshandler_t) sys_ipc_connect_kbox,
    150160       
     
    160170        (syshandler_t) sys_physmem_map,
    161171        (syshandler_t) sys_iospace_enable,
    162         (syshandler_t) sys_interrupt_enable,
     172        (syshandler_t) sys_register_irq,
     173        (syshandler_t) sys_unregister_irq,
    163174       
    164175        /* Sysinfo syscalls */
Note: See TracChangeset for help on using the changeset viewer.