From b83e3fc8edfd1b164a5b93e38316cfe37171c04b Mon Sep 17 00:00:00 2001 From: martin Date: Thu, 2 Jul 2020 11:49:48 +0000 Subject: [PATCH] Initialize ci_kfpu_spl earlier for secondary CPUs. From riastradh --- sys/arch/arm/arm32/cpu.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/arch/arm/arm32/cpu.c b/sys/arch/arm/arm32/cpu.c index cb8b3f7a018d..c67c60d02aed 100644 --- a/sys/arch/arm/arm32/cpu.c +++ b/sys/arch/arm/arm32/cpu.c @@ -1,4 +1,4 @@ -/* $NetBSD: cpu.c,v 1.146 2020/06/29 23:54:05 riastradh Exp $ */ +/* $NetBSD: cpu.c,v 1.147 2020/07/02 11:49:48 martin Exp $ */ /* * Copyright (c) 1995 Mark Brinicombe. @@ -46,7 +46,7 @@ #include "opt_multiprocessor.h" #include -__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.146 2020/06/29 23:54:05 riastradh Exp $"); +__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.147 2020/07/02 11:49:48 martin Exp $"); #include @@ -179,6 +179,8 @@ cpu_attach(device_t dv, cpuid_t id) evcnt_attach_dynamic_nozero(&ci->ci_und_cp15_ev, EVCNT_TYPE_TRAP, NULL, xname, "undefined cp15 insn traps"); + ci->ci_kfpu_spl = -1; + #ifdef MULTIPROCESSOR /* * and we are done if this is a secondary processor. @@ -229,8 +231,6 @@ cpu_attach(device_t dv, cpuid_t id) #endif vfp_attach(ci); /* XXX SMP */ - - ci->ci_kfpu_spl = -1; } enum cpu_class {