- Make the dumping of console messages from the secondary CPU's to the

kernel console be #ifdef DIAGNOSTIC.
- Don't set ktr_mask in release_aps().
This commit is contained in:
John Baldwin 2001-04-25 17:24:57 +00:00
parent 67dd89f344
commit bb61024d88
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=75978

View file

@ -1086,20 +1086,23 @@ smp_handle_ipi(struct trapframe *frame)
* secondaries that are added to the system on the fly.
*/
if (PCPU_GET(cpuid) == hwrpb->rpb_primary_cpu_id) {
struct pcs *cpu;
u_int cpuid;
u_int64_t txrdy;
#ifdef DIAGNOSTIC
struct pcs *cpu;
char buf[81];
#endif
alpha_mb();
while (hwrpb->rpb_txrdy != 0) {
cpuid = ffs(hwrpb->rpb_txrdy) - 1;
#ifdef DIAGNOSTIC
cpu = LOCATE_PCS(hwrpb, cpuid);
bcopy(&cpu->pcs_buffer.txbuf, buf,
cpu->pcs_buffer.txlen);
buf[cpu->pcs_buffer.txlen] = '\0';
printf("SMP From CPU%d: %s\n", cpuid, buf);
#endif
do {
txrdy = hwrpb->rpb_txrdy;
} while (atomic_cmpset_64(&hwrpb->rpb_txrdy, txrdy,
@ -1111,7 +1114,6 @@ smp_handle_ipi(struct trapframe *frame)
static void
release_aps(void *dummy __unused)
{
ktr_mask = (KTR_SMP|KTR_INTR|KTR_PROC|KTR_LOCK);
if (bootverbose)
printf(__func__ ": releasing secondary CPUs\n");
atomic_store_rel_int(&aps_ready, 1);