Subversion Repositories HelenOS-historic

Rev

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

Rev 806 Rev 955
Line 60... Line 60...
60
     */
60
     */
61
    write_msr(AMD_MSR_SFMASK, 0x200);
61
    write_msr(AMD_MSR_SFMASK, 0x200);
62
}
62
}
63
 
63
 
64
/** Dispatch system call */
64
/** Dispatch system call */
65
__native syscall_handler(__native id, __native a1, __native a2, __native a3)
65
__native syscall_handler(__native a1, __native a2, __native a3,
-
 
66
             __native id)
66
{
67
{
67
    interrupts_enable();
-
 
68
    if (id < SYSCALL_END)
68
    if (id < SYSCALL_END)
69
        return syscall_table[id](a1,a2,a3);
69
        return syscall_table[id](a1,a2,a3);
70
    else
70
    else
71
        panic("Undefined syscall %d", id);
71
        panic("Undefined syscall %d", id);
72
    interrupts_disable();
-
 
73
}
72
}