Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/riscv/riscv Always initialise ci_tlb_info in cpu_in...



details:   https://anonhg.NetBSD.org/src/rev/32536986b2f0
branches:  trunk
changeset: 376613:32536986b2f0
user:      skrll <skrll%NetBSD.org@localhost>
date:      Sat Jun 24 07:23:07 2023 +0000

description:
Always initialise ci_tlb_info in cpu_info_store[0].

Fixes non-MP boot for me.

diffstat:

 sys/arch/riscv/riscv/cpu.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r a919f572d83a -r 32536986b2f0 sys/arch/riscv/riscv/cpu.c
--- a/sys/arch/riscv/riscv/cpu.c        Sat Jun 24 07:15:08 2023 +0000
+++ b/sys/arch/riscv/riscv/cpu.c        Sat Jun 24 07:23:07 2023 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cpu.c,v 1.2 2023/06/12 19:04:14 skrll Exp $    */
+/*     $NetBSD: cpu.c,v 1.3 2023/06/24 07:23:07 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: cpu.c,v 1.2 2023/06/12 19:04:14 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.3 2023/06/24 07:23:07 skrll Exp $");
 
 #include <sys/param.h>
 
@@ -103,8 +103,8 @@ struct cpu_info cpu_info_store[NCPUINFO]
                .ci_cpl = IPL_HIGH,
                .ci_curlwp = &lwp0,
                .ci_cpl = IPL_HIGH,
+               .ci_tlb_info = &pmap_tlb0_info,
 #ifdef MULTIPROCESSOR
-               .ci_tlb_info = &pmap_tlb0_info,
                .ci_flags = CPUF_PRIMARY | CPUF_PRESENT | CPUF_RUNNING,
 #endif
        }



Home | Main Index | Thread Index | Old Index