refactor: re-structure the kernel address space for a more integral layout.
[lunaix-os.git] / lunaix-os / kernel / asm / x86 / interrupts.c
index a59e5f29a3a083266430976929a86bbab3db250e..688799f29212f26548502b1fa9e0a6bcf89a024b 100644 (file)
@@ -41,12 +41,6 @@ intr_handler(isr_param* param)
 {
     __current->intr_ctx = *param;
 
 {
     __current->intr_ctx = *param;
 
-#ifdef USE_KERNEL_PT
-    cpu_lcr3(__kernel_ptd);
-
-    vmm_mount_pd(PD_MOUNT_1, __current->page_table);
-#endif
-
     isr_param* lparam = &__current->intr_ctx;
 
     if (lparam->vector <= 255) {
     isr_param* lparam = &__current->intr_ctx;
 
     if (lparam->vector <= 255) {
@@ -76,8 +70,5 @@ done:
         apic_done_servicing();
     }
 
         apic_done_servicing();
     }
 
-#ifdef USE_KERNEL_PT
-    cpu_lcr3(__current->page_table);
-#endif
     return;
 }
\ No newline at end of file
     return;
 }
\ No newline at end of file