arm64: System info fixes

* Implement arch_fill_topology_node
* Change uname to return 'arm64' in utsname.machine instead 
  of 'aarch64' to match what is used for packages (otherwise,
  on startup, package daemon thinks every package has the
  wrong architecture)

Change-Id: Ibba8784fca826023e0e13fef4222bdba6a6a6964
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10684
Reviewed-by: waddlesplash <[email protected]>
This commit is contained in:
Sam Roberts
2026-04-07 20:44:44 +00:00
committed by waddlesplash
parent bf61d8be93
commit 8eea980706
2 changed files with 16 additions and 8 deletions
@@ -9,16 +9,24 @@
#include <boot/kernel_args.h>
status_t
arch_get_system_info(system_info *info, size_t size)
{
return B_OK;
}
void
arch_fill_topology_node(cpu_topology_node_info* node, int32 cpu)
{
switch (node->type) {
case B_TOPOLOGY_ROOT:
node->data.root.platform = B_CPU_ARM_64;
break;
case B_TOPOLOGY_PACKAGE:
node->data.package.vendor = B_CPU_VENDOR_UNKNOWN;
node->data.package.cache_line_size = CACHE_LINE_SIZE;
break;
case B_TOPOLOGY_CORE:
node->data.core.model = 0;
node->data.core.default_frequency = 0;
break;
default:
break;
}
}
+1 -1
View File
@@ -84,7 +84,7 @@ uname(struct utsname *info)
platform = "arm";
break;
case B_CPU_ARM_64:
platform = "aarch64";
platform = "arm64";
break;
case B_CPU_RISC_V:
platform = "riscv64";