Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 2 Nov 2004 22:27:14 GMT
From:      John Baldwin <jhb@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 64117 for review
Message-ID:  <200411022227.iA2MREI9055063@repoman.freebsd.org>

index | next in thread | raw e-mail

http://perforce.freebsd.org/chv.cgi?CH=64117

Change 64117 by jhb@jhb_slimer on 2004/11/02 22:27:06

	List CPUs during boot.

Affected files ...

.. //depot/projects/smpng/sys/alpha/alpha/mp_machdep.c#28 edit

Differences ...

==== //depot/projects/smpng/sys/alpha/alpha/mp_machdep.c#28 (text+ko) ====

@@ -424,6 +424,18 @@
 void
 cpu_mp_announce(void)
 {
+	struct pcpu *pc;
+	int i;
+	
+	/* List CPUs */
+	printf(" cpu0 (BSP): PAL ID: %2lu\n", boot_cpu_id);
+	for (i = 1; i < MAXCPU; i++) {
+		if (CPU_ABSENT(i))
+			continue;
+		pc = pcpu_find(i);
+		MPASS(pc != NULL);
+		printf(" cpu%d (AP): APIC ID: %2lu\n", i, pc->pc_pal_id);
+	}
 }
 
 /*


help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200411022227.iA2MREI9055063>