]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Rewrite cpudep_ap_bootstrap(). We now enable L3, L2, L1D and L1I
authorMarcel Moolenaar <marcel@FreeBSD.org>
Tue, 16 Sep 2008 17:22:16 +0000 (17:22 +0000)
committerMarcel Moolenaar <marcel@FreeBSD.org>
Tue, 16 Sep 2008 17:22:16 +0000 (17:22 +0000)
commit6e32690075069841e468f9b998ce82f20ba664e5
tree33a29b8ea047141e6fbf030a73562a25ccf21b1f
parentd349b8aca931e028e980fc210c6d3cf44712bfca
Rewrite cpudep_ap_bootstrap(). We now enable L3, L2, L1D and L1I
caches if not yet enabed. This is required for coherency and
atomic operations to work, not to mention performance. We use the
L2 and L3 cache settings of the BSP to configure the APs caches.
Can't be bad.

Program NAP and not DOZE. DOZE is present only on earlier CPUs
and the bit is reserved on the MPC7441 & MPC7451. NAP will do
bus snooping to keep caches coherent.

Program the PIR with the cpuid. This may not be necessary...
sys/powerpc/aim/mp_cpudep.c