diff options
| author | skrll <skrll@NetBSD.org> | 2023-06-24 07:23:07 +0000 |
|---|---|---|
| committer | skrll <skrll@NetBSD.org> | 2023-06-24 07:23:07 +0000 |
| commit | 5e1c4584209ebad1d362fb0c0ef2610dd088f226 (patch) | |
| tree | b63ca226765807121933b07171007a1355864459 /sys | |
| parent | 7ab2798c65c5a8878b77217b124390a133991da0 (diff) | |
Always initialise ci_tlb_info in cpu_info_store[0].
Fixes non-MP boot for me.
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/arch/riscv/riscv/cpu.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/riscv/riscv/cpu.c b/sys/arch/riscv/riscv/cpu.c index 1327cd98a2c..074c4132419 100644 --- a/sys/arch/riscv/riscv/cpu.c +++ b/sys/arch/riscv/riscv/cpu.c @@ -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, -#ifdef MULTIPROCESSOR .ci_tlb_info = &pmap_tlb0_info, +#ifdef MULTIPROCESSOR .ci_flags = CPUF_PRIMARY | CPUF_PRESENT | CPUF_RUNNING, #endif } |
