SMP and timer interrupts

This commit is contained in:
2025-12-23 19:50:37 +01:00
parent 259aa732c8
commit c16170e4c2
31 changed files with 1766 additions and 88 deletions

View File

@@ -24,6 +24,10 @@ static uintptr_t amd64_current_cr3 (void) {
return cr3;
}
void amd64_load_kernel_cr3 (void) {
__asm__ volatile ("movq %0, %%cr3" ::"r"(kernel_pd.cr3_paddr) : "memory");
}
static struct pg_index amd64_mm_page_index (uint64_t vaddr) {
struct pg_index ret;