smp: processor wakeup

This commit is contained in:
Matheus
2023-10-01 21:51:09 -03:00
parent 98643cb17f
commit e5c4b0f3cd
5 changed files with 83 additions and 1 deletions
+5 -1
View File
@@ -177,7 +177,7 @@ void arch_mmu_switch(pagetableptr_t table) {
asm volatile("mov %%rax, %%cr3" : : "a"(table));
}
// hhdm pointer to template to be used for new mappings
// hhdm pointer to template to be used for new mappings and smp bootup
static pagetableptr_t template;
pagetableptr_t arch_mmu_newtable() {
@@ -276,6 +276,10 @@ void arch_mmu_init() {
}
}
arch_mmu_apswitch();
}
void arch_mmu_apswitch() {
arch_mmu_switch(FROM_HHDM(template));
interrupt_register(14, pfisr, NULL, IPL_IGNORE);
}