Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/cpuctl/arch MPIDR is 64bits. Without this AFF3 woul...



details:   https://anonhg.NetBSD.org/src/rev/f36d8a0ae5d8
branches:  trunk
changeset: 373330:f36d8a0ae5d8
user:      skrll <skrll%NetBSD.org@localhost>
date:      Fri Feb 03 08:08:33 2023 +0000

description:
MPIDR is 64bits. Without this AFF3 would always be zero.

Spotted by Cyprien.

diffstat:

 usr.sbin/cpuctl/arch/aarch64.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 4c18ab2f32b6 -r f36d8a0ae5d8 usr.sbin/cpuctl/arch/aarch64.c
--- a/usr.sbin/cpuctl/arch/aarch64.c    Fri Feb 03 08:05:27 2023 +0000
+++ b/usr.sbin/cpuctl/arch/aarch64.c    Fri Feb 03 08:08:33 2023 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: aarch64.c,v 1.21 2022/04/30 14:06:10 ryo Exp $ */
+/*     $NetBSD: aarch64.c,v 1.22 2023/02/03 08:08:33 skrll Exp $       */
 
 /*
  * Copyright (c) 2018 Ryo Shimizu <ryo%nerv.org@localhost>
@@ -29,7 +29,7 @@
 #include <sys/cdefs.h>
 
 #ifndef lint
-__RCSID("$NetBSD: aarch64.c,v 1.21 2022/04/30 14:06:10 ryo Exp $");
+__RCSID("$NetBSD: aarch64.c,v 1.22 2023/02/03 08:08:33 skrll Exp $");
 #endif /* no lint */
 
 #include <sys/types.h>
@@ -1073,7 +1073,7 @@
 
 /* MPIDR_EL1 - Multiprocessor Affinity Register */
 static void
-identify_mpidr(const char *cpuname, uint32_t mpidr)
+identify_mpidr(const char *cpuname, uint64_t mpidr)
 {
        const char *setname = "multiprocessor affinity";
 



Home | Main Index | Thread Index | Old Index