summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2024-03-24 15:06:04 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2024-03-27 07:19:08 +0100
commitdeb84369a3042c071b4f4cb5a8e914aabc5b4ba1 (patch)
tree097881892b018aff7e09e56a3d9c5682ea93f47e
parentb7d834da283a0be4d0b4e19b1d0324267f405aa2 (diff)
riscv: add __UCLIBC_ABORT_INSTRUCTION__, suggested by sorear
-rw-r--r--libc/sysdeps/linux/riscv32/bits/uClibc_arch_features.h2
-rw-r--r--libc/sysdeps/linux/riscv64/bits/uClibc_arch_features.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/libc/sysdeps/linux/riscv32/bits/uClibc_arch_features.h b/libc/sysdeps/linux/riscv32/bits/uClibc_arch_features.h
index a294e093c..b53c47278 100644
--- a/libc/sysdeps/linux/riscv32/bits/uClibc_arch_features.h
+++ b/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__
diff --git a/libc/sysdeps/linux/riscv64/bits/uClibc_arch_features.h b/libc/sysdeps/linux/riscv64/bits/uClibc_arch_features.h
index 011e2cef7..63b17770d 100644
--- a/libc/sysdeps/linux/riscv64/bits/uClibc_arch_features.h
+++ b/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__