[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 04/10] proc: Only try host_kernel_version () on i386
From: |
Sergey Bugaev |
Subject: |
[PATCH 04/10] proc: Only try host_kernel_version () on i386 |
Date: |
Sat, 23 Mar 2024 14:53:16 +0300 |
None of the new architectures are going to have it; that isn't specific
to x86_64.
---
proc/host.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/proc/host.c b/proc/host.c
index 823bda53..0197fecf 100644
--- a/proc/host.c
+++ b/proc/host.c
@@ -371,8 +371,8 @@ initialize_version_info (void)
server_versions_nalloc = 10;
err = host_get_kernel_version (mach_host_self (), kv);
-#ifndef __x86_64__
- /* We don't support host_kernel_version for x86_64. */
+#ifdef __i386__
+ /* We only supported host_kernel_version on i386. */
if (err == MIG_BAD_ID)
{
/* Delete after some time. */
--
2.44.0
- [PATCH 01/10] term: Fix function prototype, Sergey Bugaev, 2024/03/23
- [PATCH 02/10] exec: Fix creating executable stacks, Sergey Bugaev, 2024/03/23
- [PATCH 04/10] proc: Only try host_kernel_version () on i386,
Sergey Bugaev <=
- [PATCH 05/10] libshouldbeinlibc: Stop relying on address space size, Sergey Bugaev, 2024/03/23
- [PATCH 03/10] Make long & friends 64-bit on 64-bit platforms, Sergey Bugaev, 2024/03/23
- [PATCH 06/10] exec: Stop relying on address space size, Sergey Bugaev, 2024/03/23
- [PATCH 09/10] proc: Add support for AArch64 in uname, Sergey Bugaev, 2024/03/23
- [PATCH 07/10] exec: Add support for AArch64 executables, Sergey Bugaev, 2024/03/23
- [PATCH 10/10] boot: Add support for AArch64, Sergey Bugaev, 2024/03/23
- [PATCH 08/10] elfcore: Add support for saving AArch64 registers, Sergey Bugaev, 2024/03/23
- Re: [PATCH 01/10] term: Fix function prototype, Samuel Thibault, 2024/03/23