From e652799da09e4bade166476ad4cee13e49722ec9 Mon Sep 17 00:00:00 2001 From: Sergey Bugaev Date: Sat, 23 Mar 2024 14:53:21 +0300 Subject: proc: Add support for AArch64 in uname Since no CPU subtypes are defined for CPU_TYPE_ARM64, just report the type, same as for x86_64. Sample uname(2) output: sysname: GNU release: 0.9 version: GNU-Mach 1.8/Hurd-0.9 machine: aarch64 Message-ID: <20240323115322.69075-9-bugaevc@gmail.com> --- proc/cpu-types.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'proc/cpu-types.c') diff --git a/proc/cpu-types.c b/proc/cpu-types.c index 3d89d5a7..41af0888 100644 --- a/proc/cpu-types.c +++ b/proc/cpu-types.c @@ -35,6 +35,9 @@ const char *const mach_cpu_types[] = #endif #ifdef CPU_TYPE_X86_64 [CPU_TYPE_X86_64] = "x86_64", +#endif +#ifdef CPU_TYPE_ARM64 + [CPU_TYPE_ARM64] = "aarch64", #endif }; -- cgit v1.2.3