summaryrefslogtreecommitdiff
path: root/sys/arch/aviion
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2007-11-14 23:12:47 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2007-11-14 23:12:47 +0000
commit6a02f03ac5dd25da89ab09d3fda006dfe33cdf94 (patch)
tree6032f8bf7127771263329a93d2a76183b15d8846 /sys/arch/aviion
parentcffe5c052bb6a0cb72b83f6abe81b5662497d569 (diff)
Merge the ci_alive and ci_primary boolean values of struct cpu_info into
a single ci_flags bitfield. Also, set_cpu_number() will no longer set CIF_PRIMARY on the primary processor, it's up to the initialization code to do this.
Diffstat (limited to 'sys/arch/aviion')
-rw-r--r--sys/arch/aviion/aviion/machdep.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/arch/aviion/aviion/machdep.c b/sys/arch/aviion/aviion/machdep.c
index 588900afba2..6beb6d78b53 100644
--- a/sys/arch/aviion/aviion/machdep.c
+++ b/sys/arch/aviion/aviion/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.13 2007/11/06 21:42:55 miod Exp $ */
+/* $OpenBSD: machdep.c,v 1.14 2007/11/14 23:12:44 miod Exp $ */
/*
* Copyright (c) 1998, 1999, 2000, 2001 Steve Murphree, Jr.
* Copyright (c) 1996 Nivas Madhur
@@ -808,6 +808,7 @@ aviion_bootstrap()
setup_board_config();
master_cpu = cmmu_init();
set_cpu_number(master_cpu);
+ SET(curcpu()->ci_flags, CIF_ALIVE | CIF_PRIMARY);
/*
* Now that set_cpu_number() set us with a valid cpu_info pointer,