Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F169989235
D58222.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
766 B
Referenced Files
None
Subscribers
None
D58222.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;
@@ -65,4 +66,13 @@
typedef void fpu_safe_exec_cb_t(void *ctx);
void lkpi_fpu_safe_exec(fpu_safe_exec_cb_t func, void *ctx);
+static inline bool
+in_compat_syscall(void)
+{
+#if defined(__amd64__) || defined(__aarch64__)
+ return (SV_CURPROC_FLAG(SV_ILP32) != 0);
+#else
+ return (false);
+#endif /* __amd64__ || __aarch64__ */
+}
#endif /* _LINUXKPI_LINUX_COMPAT_H_ */
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Sep 4, 5:00 AM (4 h, 17 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35078714
Default Alt Text
D58222.diff (766 B)
Attached To
Mode
D58222: LinuxKPI: Add in_compat_syscall for amdkfd support
Attached
Detach File
Event Timeline
Log In to Comment