Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F178183014
D62280.1796212405.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
569 B
Referenced Files
None
Subscribers
None
D62280.1796212405.diff
View Options
diff --git a/sys/compat/linux/linux_misc.c b/sys/compat/linux/linux_misc.c
--- a/sys/compat/linux/linux_misc.c
+++ b/sys/compat/linux/linux_misc.c
@@ -553,6 +553,12 @@
strlcpy(utsname.machine, "aarch64", LINUX_MAX_UTSNAME);
#elif defined(__i386__)
strlcpy(utsname.machine, "i686", LINUX_MAX_UTSNAME);
+#elif defined(__powerpc64__)
+#if _BYTE_ORDER == _LITTLE_ENDIAN
+ strlcpy(utsname.machine, "ppc64le", LINUX_MAX_UTSNAME);
+#else
+ strlcpy(utsname.machine, "ppc64", LINUX_MAX_UTSNAME);
+#endif
#endif
return (copyout(&utsname, args->buf, sizeof(utsname)));
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Dec 2, 11:53 AM (19 h, 26 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
42140785
Default Alt Text
D62280.1796212405.diff (569 B)
Attached To
Mode
D62280: linuxulator/powerpc: fill in the machine name in uname()
Attached
Detach File
Event Timeline