mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-11-01 06:58:22 +00:00
mmu: add pause instruction while waiting for other cpus to invalidate page
This commit is contained in:
@@ -46,7 +46,7 @@ static void invalidate(void* addr){
|
|||||||
sem.count += 2;
|
sem.count += 2;
|
||||||
inv = addr;
|
inv = addr;
|
||||||
arch_smp_sendipi(0, VECTOR_MMUINVAL, IPI_CPU_ALLBUTSELF);
|
arch_smp_sendipi(0, VECTOR_MMUINVAL, IPI_CPU_ALLBUTSELF);
|
||||||
while(!sem_tryacquire(&sem));
|
while(!sem_tryacquire(&sem)) asm("pause");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user