mmu: add pause instruction while waiting for other cpus to invalidate page

This commit is contained in:
Matheus
2022-09-13 20:28:28 -03:00
parent e7517468c7
commit 5e92b8cabd
+1 -1
View File
@@ -46,7 +46,7 @@ static void invalidate(void* addr){
sem.count += 2;
inv = addr;
arch_smp_sendipi(0, VECTOR_MMUINVAL, IPI_CPU_ALLBUTSELF);
while(!sem_tryacquire(&sem));
while(!sem_tryacquire(&sem)) asm("pause");
}