| Commit | Line | Data |
7828f05d MD |
1 | #include <machine/asm.h> |
| 2 | #include <sys/syscall.h> |
| 3 | |
| 4 | |
| 5 | #define KERNCALL movq %rcx, %r10; syscall |
| 6 | |
| 7 | #define SYSCALL_ERR(x) \ |
| 8 | ENTRY(__CONCAT(x, _err)); \ |
| 9 | mov __CONCAT($SYS,x),%rax; KERNCALL; ret |
| 10 | |
| 11 | |
| 12 | SYSCALL_ERR(_umtx_sleep) |
| 13 | SYSCALL_ERR(_umtx_wakeup) |