Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F133424486
D25248.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
675 B
Referenced Files
None
Subscribers
None
D25248.diff
View Options
Index: head/sys/compat/linux/linux_misc.c
===================================================================
--- head/sys/compat/linux/linux_misc.c
+++ head/sys/compat/linux/linux_misc.c
@@ -704,7 +704,17 @@
*p = '\0';
break;
}
+#if defined(__amd64__)
+ /*
+ * On amd64, Linux uname(2) needs to return "x86_64"
+ * for both 64-bit and 32-bit applications. On 32-bit,
+ * the string returned by getauxval(AT_PLATFORM) needs
+ * to remain "i686", though.
+ */
+ strlcpy(utsname.machine, "x86_64", LINUX_MAX_UTSNAME);
+#else
strlcpy(utsname.machine, linux_kplatform, LINUX_MAX_UTSNAME);
+#endif
return (copyout(&utsname, args->buf, sizeof(utsname)));
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Oct 26, 5:07 PM (2 h, 35 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
24240855
Default Alt Text
D25248.diff (675 B)
Attached To
Mode
D25248: Make Linux uname(2) return x86_64 to 32-bit apps
Attached
Detach File
Event Timeline
Log In to Comment