Browse Source

riscv: add __UCLIBC_ABORT_INSTRUCTION__, suggested by sorear

Waldemar Brodkorb 1 month ago
parent
commit
deb84369a3

+ 1 - 1
libc/sysdeps/linux/riscv32/bits/uClibc_arch_features.h

@@ -5,7 +5,7 @@
 #ifndef _BITS_UCLIBC_ARCH_FEATURES_H
 #define _BITS_UCLIBC_ARCH_FEATURES_H
 
-#undef __UCLIBC_ABORT_INSTRUCTION__
+#define __UCLIBC_ABORT_INSTRUCTION__ "unimp"
 
 #undef __UCLIBC_SYSCALL_ALIGN_64BIT__
 

+ 1 - 1
libc/sysdeps/linux/riscv64/bits/uClibc_arch_features.h

@@ -5,7 +5,7 @@
 #ifndef _BITS_UCLIBC_ARCH_FEATURES_H
 #define _BITS_UCLIBC_ARCH_FEATURES_H
 
-#undef __UCLIBC_ABORT_INSTRUCTION__
+#define __UCLIBC_ABORT_INSTRUCTION__ "unimp"
 
 /* can your target use syscall6() for mmap ? */
 #define __UCLIBC_MMAP_HAS_6_ARGS__