Add a memory barrier to ensure the atomic write is visible to the other

CPUs before waking them up.

Sponsored by:	DARPA, AFRL
This commit is contained in:
andrew 2017-10-02 14:22:35 +00:00
parent be5ef94d23
commit 57fa69eee6

View File

@ -236,7 +236,10 @@ release_aps(void *dummy __unused)
atomic_store_rel_int(&aps_ready, 1);
/* Wake up the other CPUs */
__asm __volatile("sev");
__asm __volatile(
"dsb ishst \n"
"sev \n"
::: "memory");
printf("Release APs\n");