Page MenuHomeFreeBSD

D54598.id169398.diff
No OneTemporary

D54598.id169398.diff

diff --git a/sys/arm64/include/ifunc.h b/sys/arm64/include/ifunc.h
--- a/sys/arm64/include/ifunc.h
+++ b/sys/arm64/include/ifunc.h
@@ -29,20 +29,38 @@
#ifndef __ARM64_IFUNC_H
#define __ARM64_IFUNC_H
+struct __ifunc_arg_t
+{
+ unsigned long _size; /* Size of the struct, so it can grow. */
+ unsigned long _hwcap;
+ unsigned long _hwcap2;
+ unsigned long _hwcap3;
+ unsigned long _hwcap4;
+};
+
+typedef struct __ifunc_arg_t __ifunc_arg_t;
+
+#define _IFUNC_ARG_HWCAP (1ULL << 62)
+
#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"))); \
static ret_type (*name##_resolver(void))args
#define DEFINE_UIFUNC(qual, ret_type, name, args) \
- static ret_type (*name##_resolver(uint64_t, uint64_t, \
+ static ret_type (*name##_resolver(uint64_t, \
+ struct __ifunc_arg_t *ifunc_arg, \
uint64_t, uint64_t, uint64_t, uint64_t, uint64_t, \
uint64_t))args __used; \
qual ret_type name args __attribute__((ifunc(#name "_resolver"))); \
- static ret_type (*name##_resolver(uint64_t _arg1 __unused, \
- uint64_t _arg2 __unused, uint64_t _arg3 __unused, \
- uint64_t _arg4 __unused, uint64_t _arg5 __unused, \
- uint64_t _arg6 __unused, uint64_t _arg7 __unused, \
+ static ret_type (*name##_resolver( \
+ uint64_t at_hwcap __unused, \
+ struct __ifunc_arg_t *ifunc_arg __unused, \
+ uint64_t _arg3 __unused, \
+ uint64_t _arg4 __unused, \
+ uint64_t _arg5 __unused, \
+ uint64_t _arg6 __unused, \
+ uint64_t _arg7 __unused, \
uint64_t _arg8 __unused))args
#endif

File Metadata

Mime Type
text/plain
Expires
Mon, Jan 26, 11:37 AM (10 h, 16 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
27600507
Default Alt Text
D54598.id169398.diff (1 KB)

Event Timeline