From 42b9b75749550eddf3674430fd1c5136f311c7ad Mon Sep 17 00:00:00 2001 From: Justine Tunney Date: Mon, 5 Jun 2023 05:57:44 -0700 Subject: [PATCH] Fix aarch64 build --- libc/intrin/kprintf.greg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libc/intrin/kprintf.greg.c b/libc/intrin/kprintf.greg.c index b1952fa68..6647d5ed8 100644 --- a/libc/intrin/kprintf.greg.c +++ b/libc/intrin/kprintf.greg.c @@ -237,7 +237,7 @@ privileged void _klog(const char *b, size_t n) { : "rcx", "r8", "r9", "r10", "r11", "memory", "cc"); } #elif defined(__aarch64__) - register long r0 asm("x0") = (long)h; + register long r0 asm("x0") = (long)kloghandle(); register long r1 asm("x1") = (long)b; register long r2 asm("x2") = (long)n; register long r8 asm("x8") = (long)__NR_write;