Module Name: src Committed By: skrll Date: Mon Feb 4 13:12:03 UTC 2019
Modified Files: src/sys/arch/arm/arm32: arm32_machdep.c Log Message: Report hatched value after the atomic_or so the VERBOSE_INIT_ARM output doesn't get mangled. We start a cpu and wait for it before progressing now. To generate a diff of this commit: cvs rdiff -u -r1.126 -r1.127 src/sys/arch/arm/arm32/arm32_machdep.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/arm/arm32/arm32_machdep.c diff -u src/sys/arch/arm/arm32/arm32_machdep.c:1.126 src/sys/arch/arm/arm32/arm32_machdep.c:1.127 --- src/sys/arch/arm/arm32/arm32_machdep.c:1.126 Mon Jan 21 07:46:20 2019 +++ src/sys/arch/arm/arm32/arm32_machdep.c Mon Feb 4 13:12:03 2019 @@ -1,4 +1,4 @@ -/* $NetBSD: arm32_machdep.c,v 1.126 2019/01/21 07:46:20 skrll Exp $ */ +/* $NetBSD: arm32_machdep.c,v 1.127 2019/02/04 13:12:03 skrll Exp $ */ /* * Copyright (c) 1994-1998 Mark Brinicombe. @@ -42,7 +42,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: arm32_machdep.c,v 1.126 2019/01/21 07:46:20 skrll Exp $"); +__KERNEL_RCSID(0, "$NetBSD: arm32_machdep.c,v 1.127 2019/02/04 13:12:03 skrll Exp $"); #include "opt_arm_debug.h" #include "opt_arm_start.h" @@ -769,13 +769,13 @@ cpu_init_secondary_processor(int cpuinde VPRINTS(")"); #endif - atomic_or_uint(&arm_cpu_hatched, __BIT(cpuindex)); - VPRINTS(" hatched="); - VPRINTX(arm_cpu_hatched); + VPRINTX(arm_cpu_hatched | __BIT(cpuindex)); VPRINTS("\n\r"); - /* return to assembly to Wait for cpu_boot_secondary_processors */ + atomic_or_uint(&arm_cpu_hatched, __BIT(cpuindex)); + + /* return to assembly to wait for cpu_boot_secondary_processors */ } void