- Oops, forgot to initalize the cpu_softc simplelock.

- Add yet another debugging printf.
This commit is contained in:
thorpej 1998-09-26 00:00:33 +00:00
parent e2aa38459c
commit 1f4921edce
1 changed files with 8 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: cpu.c,v 1.28 1998/09/25 03:23:50 thorpej Exp $ */ /* $NetBSD: cpu.c,v 1.29 1998/09/26 00:00:33 thorpej Exp $ */
/*- /*-
* Copyright (c) 1998 The NetBSD Foundation, Inc. * Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -66,7 +66,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */ #include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.28 1998/09/25 03:23:50 thorpej Exp $"); __KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.29 1998/09/26 00:00:33 thorpej Exp $");
#include "opt_multiprocessor.h" #include "opt_multiprocessor.h"
@ -207,6 +207,8 @@ cpuattach(parent, dev, aux)
major = PCS_CPU_MAJORTYPE(p); major = PCS_CPU_MAJORTYPE(p);
minor = PCS_CPU_MINORTYPE(p); minor = PCS_CPU_MINORTYPE(p);
simple_lock_init(&sc->sc_slock);
sc->sc_cpuid = ma->ma_slot; sc->sc_cpuid = ma->ma_slot;
printf(": ID %d%s, ", ma->ma_slot, printf(": ID %d%s, ", ma->ma_slot,
@ -367,6 +369,10 @@ cpu_run_spinup_queue()
pcb->pcb_hw.apcb_asn = proc0.p_addr->u_pcb.pcb_hw.apcb_asn; pcb->pcb_hw.apcb_asn = proc0.p_addr->u_pcb.pcb_hw.apcb_asn;
pcb->pcb_hw.apcb_ptbr = proc0.p_addr->u_pcb.pcb_hw.apcb_ptbr; pcb->pcb_hw.apcb_ptbr = proc0.p_addr->u_pcb.pcb_hw.apcb_ptbr;
memcpy(pcsp->pcs_hwpcb, &pcb->pcb_hw, sizeof(pcb->pcb_hw)); memcpy(pcsp->pcs_hwpcb, &pcb->pcb_hw, sizeof(pcb->pcb_hw));
#if 1
printf("%s: hwpcb ksp = 0x%lx\n", sc->sc_dev.dv_xname,
pcb->pcb_hw.apcb_ksp);
#endif
/* /*
* Set up the HWRPB to restart the secondary processor * Set up the HWRPB to restart the secondary processor