Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177556934
D58222.1794713800.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
564 B
Referenced Files
None
Subscribers
None
D58222.1794713800.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
@@ -59,6 +59,16 @@
return (0);
}
+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__ */
+}
+
#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
Sun, Nov 15, 3:36 AM (9 h, 41 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
38821867
Default Alt Text
D58222.1794713800.diff (564 B)
Attached To
Mode
D58222: LinuxKPI: Add in_compat_syscall for amdkfd support
Attached
Detach File
Event Timeline