Load kernel CR3

This commit is contained in:
2026-01-11 03:45:32 +01:00
parent 5bf10c1218
commit f80a26e5eb
4 changed files with 16 additions and 0 deletions

View File

@@ -161,6 +161,8 @@ static void amd64_intr_exception (struct saved_regs* regs) {
/* Handle incoming interrupt, dispatch IRQ handlers. */
void amd64_intr_handler (void* stack_ptr) {
amd64_load_kernel_cr3 ();
struct saved_regs* regs = stack_ptr;
if (regs->trap <= 31) {