CeDOS - Commit 7c1718f1

Moved bootloader pages to preserve real mode interrupt table
Celina Kalus
Mon, 27 Mar 2023 16:52:13 +0200
1 files changed, 3 insertions(+), 3 deletions(-)
M src/boot/paging.csrc/boot/paging.c

@@ -5,9 +5,9 @@ #include "fat.h"

void *create_kernel_environment() { - PAGE_DIR_ENTRY (*pdir)[PAGE_ENTRY_COUNT] = (void*)(0 * PAGE_SIZE); - PAGE_TABLE_ENTRY (*kernel)[PAGE_ENTRY_COUNT] = (void*)(1 * PAGE_SIZE); - PAGE_TABLE_ENTRY (*lowmem)[PAGE_ENTRY_COUNT] = (void*)(2 * PAGE_SIZE); + PAGE_DIR_ENTRY (*pdir)[PAGE_ENTRY_COUNT] = (void*)(1 * PAGE_SIZE); + PAGE_TABLE_ENTRY (*kernel)[PAGE_ENTRY_COUNT] = (void*)(2 * PAGE_SIZE); + PAGE_TABLE_ENTRY (*lowmem)[PAGE_ENTRY_COUNT] = (void*)(3 * PAGE_SIZE); // set everything to zero memset(pdir, 0, 3 * PAGE_SIZE);