[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[tyndur-devel] [PATCH v2 5/7] kernel2: Kernel-PD bei Paging-Initialisierung richtig setzen
! kernel2: Nachdem Paging an ist, muessen wir auf die virtuelle Adresse
des Kernel-PD zugreifen
Signed-off-by: Kevin Wolf <kevin@xxxxxxxxxx>
---
src/kernel2/src/arch/i386/mm/virt.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/kernel2/src/arch/i386/mm/virt.c b/src/kernel2/src/arch/i386/mm/virt.c
index 55ced12..065a0c7 100644
--- a/src/kernel2/src/arch/i386/mm/virt.c
+++ b/src/kernel2/src/arch/i386/mm/virt.c
@@ -42,6 +42,7 @@
extern void pmm_set_bitmap_start(void* bitmap_start);
extern bool use_phys_addr;
+extern page_directory_t page_directory_current;
/**
* Initialisiert die virtuelle Speicherverwaltung. Insbesondere wird ein
@@ -84,6 +85,7 @@ void vmm_init(mmc_context_t* kernel_context)
use_phys_addr = FALSE;
kernel_context->page_directory_virt = virtual_pd;
+ page_directory_current = virtual_pd;
}
/**
--
1.6.0.2