Page MenuHomeFreeBSD

D58222.1796654463.diff
No OneTemporary

Authored By
Unknown
Size
675 B
Referenced Files
None
Subscribers
None

D58222.1796654463.diff

diff --git a/sys/compat/linuxkpi/common/include/linux/compat.h b/sys/compat/linuxkpi/common/include/linux/compat.h
--- a/sys/compat/linuxkpi/common/include/linux/compat.h
+++ b/sys/compat/linuxkpi/common/include/linux/compat.h
@@ -32,6 +32,7 @@
#include <sys/param.h>
#include <sys/proc.h>
#include <sys/malloc.h>
+#include <sys/sysent.h>
struct domainset;
struct thread;
@@ -59,6 +60,16 @@
return (0);
}
+static inline bool
+in_compat_syscall(void)
+{
+#if defined(__LP64__)
+ return (SV_CURPROC_FLAG(SV_ILP32) != 0);
+#else
+ return (false);
+#endif /* __LP64__ */
+}
+
#define compat_ptr(x) ((void *)(uintptr_t)x)
#define ptr_to_compat(x) ((uintptr_t)x)

File Metadata

Mime Type
text/plain
Expires
Mon, Dec 7, 2:41 PM (17 h, 11 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41816343
Default Alt Text
D58222.1796654463.diff (675 B)

Event Timeline