Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/arm32 Initialize ci_kfpu_spl earlier for second...



details:   https://anonhg.NetBSD.org/src/rev/d6d1392c3502
branches:  trunk
changeset: 973470:d6d1392c3502
user:      martin <martin%NetBSD.org@localhost>
date:      Thu Jul 02 11:49:48 2020 +0000

description:
Initialize ci_kfpu_spl earlier for secondary CPUs. From riastradh

diffstat:

 sys/arch/arm/arm32/cpu.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r c804720fb38c -r d6d1392c3502 sys/arch/arm/arm32/cpu.c
--- a/sys/arch/arm/arm32/cpu.c  Thu Jul 02 11:10:47 2020 +0000
+++ b/sys/arch/arm/arm32/cpu.c  Thu Jul 02 11:49:48 2020 +0000
@@ -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 <sys/cdefs.h>
-__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 <sys/param.h>
 
@@ -179,6 +179,8 @@
        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 @@
 #endif
 
        vfp_attach(ci);         /* XXX SMP */
-
-       ci->ci_kfpu_spl = -1;
 }
 
 enum cpu_class {



Home | Main Index | Thread Index | Old Index