Module Name: src Committed By: skrll Date: Sun Feb 9 10:08:38 UTC 2025
Modified Files: src/sys/arch/riscv/fdt: intc_fdt.c Log Message: risc-v: show cpu number in intc_fdt_intrstr and not hartid. To generate a diff of this commit: cvs rdiff -u -r1.7 -r1.8 src/sys/arch/riscv/fdt/intc_fdt.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/riscv/fdt/intc_fdt.c diff -u src/sys/arch/riscv/fdt/intc_fdt.c:1.7 src/sys/arch/riscv/fdt/intc_fdt.c:1.8 --- src/sys/arch/riscv/fdt/intc_fdt.c:1.7 Mon Dec 30 15:18:11 2024 +++ src/sys/arch/riscv/fdt/intc_fdt.c Sun Feb 9 10:08:37 2025 @@ -1,4 +1,4 @@ -/* $NetBSD: intc_fdt.c,v 1.7 2024/12/30 15:18:11 skrll Exp $ */ +/* $NetBSD: intc_fdt.c,v 1.8 2025/02/09 10:08:37 skrll Exp $ */ /*- * Copyright (c) 2023 The NetBSD Foundation, Inc. @@ -32,7 +32,7 @@ #include "opt_multiprocessor.h" #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: intc_fdt.c,v 1.7 2024/12/30 15:18:11 skrll Exp $"); +__KERNEL_RCSID(0, "$NetBSD: intc_fdt.c,v 1.8 2025/02/09 10:08:37 skrll Exp $"); #include <sys/param.h> @@ -234,7 +234,7 @@ intc_fdt_intrstr(device_t dev, u_int *sp return false; const u_int source = be32toh(specifier[0]); - snprintf(buf, buflen, "cpu%lu/%s #%u", sc->sc_hartid, + snprintf(buf, buflen, "cpu%u/%s #%u", cpu_index(sc->sc_ci), intc_sources[source], source); return true;