From 81df4702c424f91cca5570ab2554d1d4cbae534d Mon Sep 17 00:00:00 2001 From: Benji Dial Date: Wed, 3 Mar 2021 22:43:17 -0500 Subject: 64kiB kernel area, ps/2 mouse support, signed decimals in knob format --- src/kernel/paging.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/kernel/paging.c') diff --git a/src/kernel/paging.c b/src/kernel/paging.c index 0432ab6..dc7ca27 100644 --- a/src/kernel/paging.c +++ b/src/kernel/paging.c @@ -115,11 +115,15 @@ void init_paging() { for (uint32_t i = 0; i < 1048576; ++i) KPAGE_TABLE_0[i] = (i * 4096) | PE_WRITABLE | PE_PRESENT; + KPAGE_TABLE_0[0x00020] &= ~PE_PRESENT; + KPAGE_TABLE_0[0x0002f] &= ~PE_PRESENT; for (uint16_t i = 0; i < 1024; ++i) KPAGE_DIR[i] = (uint32_t)(KPAGE_TABLE_0 + i * 1024) | PE_WRITABLE | PE_PRESENT; for (uint16_t i = 0; i < KERNEL_END / 4096; ++i) kmap[i] = (i * 4096) | PE_USER | PE_PRESENT; + kmap[0x00020] &= ~PE_PRESENT; + kmap[0x0002f] &= ~PE_PRESENT; asm volatile ( "mov $0x00005000, %%eax\n" -- cgit v1.2.3