Subversion Repositories HelenOS-historic

Rev

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

Rev 1090 Rev 1100
Line 60... Line 60...
60
static __native sys_mremap(void *address, size_t size, int flags)
60
static __native sys_mremap(void *address, size_t size, int flags)
61
{
61
{
62
    return as_remap(AS, (__address) address, size, 0);
62
    return as_remap(AS, (__address) address, size, 0);
63
}
63
}
64
 
64
 
-
 
65
/** Dispatch system call */
-
 
66
__native syscall_handler(__native a1, __native a2, __native a3,
-
 
67
             __native a4, __native id)
-
 
68
{
-
 
69
    if (id < SYSCALL_END)
-
 
70
        return syscall_table[id](a1,a2,a3,a4);
-
 
71
    else
-
 
72
        panic("Undefined syscall %d", id);
-
 
73
}
-
 
74
 
65
syshandler_t syscall_table[SYSCALL_END] = {
75
syshandler_t syscall_table[SYSCALL_END] = {
66
    sys_io,
76
    sys_io,
67
    sys_thread_create,
77
    sys_thread_create,
68
    sys_thread_exit,
78
    sys_thread_exit,
69
    sys_mmap,
79
    sys_mmap,