[PATCH 1/2] libgloss: riscv: Fix build for rv64e
Eric Salem
ericsalem@gmail.com
Sun Apr 20 20:39:17 GMT 2025
Update the macro check so that rv64e builds successfully.
Signed-off-by: Eric Salem <ericsalem@gmail.com>
---
libgloss/riscv/internal_syscall.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libgloss/riscv/internal_syscall.h b/libgloss/riscv/internal_syscall.h
index 080c8c847e04..254880b48b00 100644
--- a/libgloss/riscv/internal_syscall.h
+++ b/libgloss/riscv/internal_syscall.h
@@ -24,7 +24,7 @@ __syscall_error(long a0)
static inline long
__internal_syscall(long n, int argc, long _a0, long _a1, long _a2, long _a3, long _a4, long _a5)
{
-#ifdef __riscv_32e
+#ifdef __riscv_abi_rve
register long syscall_id asm("t0") = n;
#else
register long syscall_id asm("a7") = n;
--
2.49.0
More information about the Newlib
mailing list