diff options
| author | Konstantin Belousov <kib@FreeBSD.org> | 2026-01-23 21:33:07 +0000 |
|---|---|---|
| committer | Konstantin Belousov <kib@FreeBSD.org> | 2026-01-29 18:11:54 +0000 |
| commit | 03d61fe9785793cce9324fd4e6019562586760fa (patch) | |
| tree | ae3720871abdd5dae852798b4f1d06353b90784b | |
| parent | 5cfe09e3a442347fe408fa95126dfbc051d064c3 (diff) | |
arm, riscv: add a preprocessor symbol indicating missed support of ifunc
in kernel.
Tested by: pho
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D54831
| -rw-r--r-- | sys/arm/include/ifunc.h | 10 | ||||
| -rw-r--r-- | sys/riscv/include/ifunc.h | 2 |
2 files changed, 12 insertions, 0 deletions
diff --git a/sys/arm/include/ifunc.h b/sys/arm/include/ifunc.h new file mode 100644 index 000000000000..6b7cf20c720f --- /dev/null +++ b/sys/arm/include/ifunc.h @@ -0,0 +1,10 @@ +/* + * This file is in the public domain. + */ + +#ifndef __ARM_IFUNC_H +#define __ARM_IFUNC_H + +#define __DO_NOT_HAVE_SYS_IFUNCS 1 + +#endif diff --git a/sys/riscv/include/ifunc.h b/sys/riscv/include/ifunc.h index 0f9747a2aa14..0d91014ccce8 100644 --- a/sys/riscv/include/ifunc.h +++ b/sys/riscv/include/ifunc.h @@ -30,6 +30,8 @@ #ifndef __RISCV_IFUNC_H #define __RISCV_IFUNC_H +#define __DO_NOT_HAVE_SYS_IFUNCS 1 + #define DEFINE_IFUNC(qual, ret_type, name, args) \ static ret_type (*name##_resolver(void))args __used; \ qual ret_type name args __attribute__((ifunc(#name "_resolver"))); \ |
