Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F178393059
D58222.1796654463.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
675 B
Referenced Files
None
Subscribers
None
D58222.1796654463.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D58222: LinuxKPI: Add in_compat_syscall for amdkfd support
Attached
Detach File
Event Timeline