mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 12:48: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;
|
||||
inv = addr;
|
||||
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