mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-11-01 15:08:21 +00:00
mmu: don't do tlb shootdowns if no other cpus are online
This commit is contained in:
@@ -200,8 +200,8 @@ void arch_mmu_tlbipi(isr_t *isr, context_t *context) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void arch_mmu_tlbshootdown(void *page) {
|
void arch_mmu_tlbshootdown(void *page) {
|
||||||
// scheduler not up yet, nothing to do
|
// scheduler not up yet, or there are no other cpus, nothing to do
|
||||||
if (_cpu()->thread == NULL)
|
if (_cpu()->thread == NULL || arch_smp_cpusawake == 1)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (page >= KERNELSPACE_START ||
|
if (page >= KERNELSPACE_START ||
|
||||||
|
|||||||
Reference in New Issue
Block a user