[PATCH 1/2] libgloss: riscv: Fix build for rv64e
Eric Salem <[email protected]>
| Newsgroups | gmane.comp.lib.newlib |
|---|---|
| Message-ID | <3b925aef48eca91e0aa5f068b566ef7da475f80f.1745116142.git.ericsalem@gmail.com> |
Update the macro check so that rv64e builds successfully. Signed-off-by: Eric Salem <[email protected]> --- 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