Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F147357009
D30924.id91512.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
669 B
Referenced Files
None
Subscribers
None
D30924.id91512.diff
View Options
diff --git a/sys/compat/linuxkpi/common/src/linux_compat.c b/sys/compat/linuxkpi/common/src/linux_compat.c
--- a/sys/compat/linuxkpi/common/src/linux_compat.c
+++ b/sys/compat/linuxkpi/common/src/linux_compat.c
@@ -51,6 +51,7 @@
#include <sys/rwlock.h>
#include <sys/mman.h>
#include <sys/stack.h>
+#include <sys/sysent.h>
#include <sys/time.h>
#include <sys/user.h>
@@ -964,7 +965,7 @@
data = *(void **)data;
}
#if defined(__amd64__)
- if (td->td_proc->p_elf_machine == EM_386) {
+ if (SV_PROC_FLAG(td->td_proc, SV_ILP32)) {
/* try the compat IOCTL handler first */
if (fop->compat_ioctl != NULL) {
error = -OPW(fp, td, fop->compat_ioctl(filp,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Mar 11, 7:13 AM (3 h, 58 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29521835
Default Alt Text
D30924.id91512.diff (669 B)
Attached To
Mode
D30924: LinuxKPI: Use the proper API to determine the ABI of the running process.
Attached
Detach File
Event Timeline
Log In to Comment