Subversion Repositories HelenOS

Rev

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

Rev 1862 Rev 1888
Line 40... Line 40...
40
#include <arch/types.h>
40
#include <arch/types.h>
41
#include <typedefs.h>
41
#include <typedefs.h>
42
 
42
 
43
unative_t syscall(int n, istate_t *istate, unative_t a1, unative_t a2, unative_t a3, unative_t a4)
43
unative_t syscall(int n, istate_t *istate, unative_t a1, unative_t a2, unative_t a3, unative_t a4)
44
{
44
{
45
    if (n >= TT_TRAP_INSTRUCTION(0) && n <= TT_TRAP_INSTRUCTION_LAST)
-
 
46
        return syscall_table[n - TT_TRAP_INSTRUCTION(0)](a1, a2, a3, a4);
-
 
47
    else
-
 
48
        panic("Undefined syscall %d\n", n - TT_TRAP_INSTRUCTION(0));
45
    return syscall_handler(a1, a2, a3, a4, n - TT_TRAP_INSTRUCTION(0));
49
}
46
}
50
 
47
 
51
/** @}
48
/** @}
52
 */
49
 */