Subversion Repositories HelenOS-historic

Rev

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

Rev 505 Rev 656
Line 31... Line 31...
31
sysarg_t __syscall(const syscall_t id, const sysarg_t p1, const sysarg_t p2, const sysarg_t p3)
31
sysarg_t __syscall(const syscall_t id, const sysarg_t p1, const sysarg_t p2, const sysarg_t p3)
32
{
32
{
33
    sysarg_t ret;
33
    sysarg_t ret;
34
   
34
   
35
    asm volatile (
35
    asm volatile (
36
        "int $0x80\n"
36
        "int $0x30\n"
37
        : "=a" (ret)
37
        : "=a" (ret)
38
        : "a" (id),
38
        : "a" (id),
39
          "b" (p1),
39
          "b" (p1),
40
          "c" (p2),
40
          "c" (p2),
41
          "d" (p3)
41
          "d" (p3)