From 3d806c9e2fcb6226915982b6514919a3b9dac4dc Mon Sep 17 00:00:00 2001 From: Ada Christine Date: Sat, 1 Feb 2025 23:25:40 +0000 Subject: write syscall functions --- service/lib/posix.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'service/lib/posix.c') 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) -- cgit v1.3.1-1-g115d