1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-21 15:45:02 +00:00

Fix the SMP initialization on RPi 2 (BCM2836).

Invalidate the CPU cache before start the others CPUs.

Submitted by:	Michal Meloun <meloun@miracle.cz>
This commit is contained in:
Luiz Otavio O Souza 2015-05-13 01:48:47 +00:00
parent 6a4b96ad82
commit 98d1292d0a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=282828

View File

@ -123,6 +123,8 @@ platform_mp_start_ap(void)
BSWR4(MBOX3CLR_CORE(i), 0xffffffff);
}
wmb();
cpu_idcache_wbinv_all();
cpu_l2cache_wbinv_all();
/* boot secondary CPUs */
for (i = 1; i < mp_ncpus; i++) {
@ -152,9 +154,6 @@ platform_mp_start_ap(void)
/* recode AP in CPU map */
CPU_SET(i, &all_cpus);
}
cpu_idcache_wbinv_all();
cpu_l2cache_wbinv_all();
}
void