Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/bjh21-hydra]: src/sys/arch/arm/arm32 In cpu_attach(), allocate an idle P...
details: https://anonhg.NetBSD.org/src/rev/81e58dc5d69e
branches: bjh21-hydra
changeset: 538362:81e58dc5d69e
user: bjh21 <bjh21%NetBSD.org@localhost>
date: Sat Oct 19 15:12:52 2002 +0000
description:
In cpu_attach(), allocate an idle PCB if the CPU doesn't already have one
(which the boot CPU won't).
diffstat:
sys/arch/arm/arm32/cpu.c | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diffs (30 lines):
diff -r 262d0c4b1c82 -r 81e58dc5d69e sys/arch/arm/arm32/cpu.c
--- a/sys/arch/arm/arm32/cpu.c Sat Oct 19 14:04:36 2002 +0000
+++ b/sys/arch/arm/arm32/cpu.c Sat Oct 19 15:12:52 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cpu.c,v 1.45 2002/10/13 21:14:28 chris Exp $ */
+/* $NetBSD: cpu.c,v 1.45.2.1 2002/10/19 15:12:52 bjh21 Exp $ */
/*
* Copyright (c) 1995 Mark Brinicombe.
@@ -45,7 +45,7 @@
#include <sys/param.h>
-__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.45 2002/10/13 21:14:28 chris Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.45.2.1 2002/10/19 15:12:52 bjh21 Exp $");
#include <sys/systm.h>
#include <sys/malloc.h>
@@ -79,6 +79,11 @@
usearmfpe = 1; /* when compiled in, its enabled by default */
+#ifdef MULTIPROCESSOR
+ if (curcpu()->ci_idlepcb == NULL)
+ cpu_alloc_idlepcb(curcpu());
+#endif
+
curcpu()->ci_dev = dv;
evcnt_attach_dynamic(&curcpu()->ci_arm700bugcount, EVCNT_TYPE_MISC,
Home |
Main Index |
Thread Index |
Old Index