diff --git a/libs/libc/src/luna/syscall.c b/libs/libc/src/luna/syscall.c index a1c1499b..011c3ea7 100644 --- a/libs/libc/src/luna/syscall.c +++ b/libs/libc/src/luna/syscall.c @@ -42,7 +42,7 @@ long int __luna_syscall5(long int sys_num, unsigned long int arg0, unsigned long { long int result; register unsigned long int value0 asm("r10") = arg3; - register unsigned long int value1 asm("r10") = arg4; + register unsigned long int value1 asm("r8") = arg4; asm volatile("int $0x42" : "=a"(result) : "a"(sys_num), "D"(arg0), "S"(arg1), "d"(arg2), "r"(value0), "r"(value1)); return result; } \ No newline at end of file