diff options
Diffstat (limited to 'service/lib/posix.c')
| -rw-r--r-- | service/lib/posix.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/service/lib/posix.c b/service/lib/posix.c index a912977..9a3e70f 100644 --- a/service/lib/posix.c +++ b/service/lib/posix.c @@ -5,10 +5,10 @@ ssize_t write(int fd, const void *buffer, size_t length) ssize_t result; __asm__ ( - "movq %0, %%rdi\n" - "movq %1, %%rsi\n" - "movq %2, %%rdx\n" - "movq $1, %%rax\n" + "movq %1, %%rdi\n" + "movq %2, %%rsi\n" + "movq %3, %%rdx\n" + "movq %0, %%rax\n" "syscall" : "=a"(result) : "g"(fd), "g"(buffer), "g"(length) |
