[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 2/4] proc: Report CPU_TYPE_X86_64 in uname as "x86_64"
From: |
Sergey Bugaev |
Subject: |
[PATCH v2 2/4] proc: Report CPU_TYPE_X86_64 in uname as "x86_64" |
Date: |
Mon, 15 May 2023 10:35:58 +0300 |
This fixes a proc server crash during startup inside
initialize_version_info ().
---
proc/cpu-types.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/proc/cpu-types.c b/proc/cpu-types.c
index 3d89d5a7..89787d3d 100644
--- a/proc/cpu-types.c
+++ b/proc/cpu-types.c
@@ -30,6 +30,9 @@ const char *const mach_cpu_types[] =
#ifdef CPU_TYPE_PENTIUMPRO
[CPU_TYPE_PENTIUMPRO] = "i686",
#endif
+#ifdef CPU_TYPE_X86_64
+ [CPU_TYPE_X86_64] = "x86_64",
+#endif
#ifdef CPU_TYPE_POWERPC
[CPU_TYPE_POWERPC] = "powerpc",
#endif
--
2.40.1