Subversion Repositories HelenOS

Rev

Rev 2467 | Rev 2618 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2467 Rev 2605
Line 90... Line 90...
90
    arch_grab_console();
90
    arch_grab_console();
91
    return 0;
91
    return 0;
92
}
92
}
93
 
93
 
94
/** Dispatch system call */
94
/** Dispatch system call */
95
unative_t syscall_handler(unative_t a1, unative_t a2, unative_t a3, unative_t a4,
95
unative_t syscall_handler(unative_t a1, unative_t a2, unative_t a3,
96
    unative_t id)
96
    unative_t a4, unative_t a5, unative_t a6, unative_t id)
97
{
97
{
98
    unative_t rc;
98
    unative_t rc;
99
 
99
 
100
    if (id < SYSCALL_END)
100
    if (id < SYSCALL_END)
101
        rc = syscall_table[id](a1, a2, a3, a4);
101
        rc = syscall_table[id](a1, a2, a3, a4, a5, a6);
102
    else {
102
    else {
103
        klog_printf("TASK %llu: Unknown syscall id %d", TASK->taskid,
103
        klog_printf("TASK %llu: Unknown syscall id %llx", TASK->taskid,
104
            id);
104
            id);
105
        task_kill(TASK->taskid);
105
        task_kill(TASK->taskid);
106
        thread_exit();
106
        thread_exit();
107
    }
107
    }
108
       
108