From 91c637d847744ba410cbf0e20c62c485e1f6153d Mon Sep 17 00:00:00 2001 From: dzwdz Date: Thu, 22 Jul 2021 19:53:52 +0200 Subject: don't map the VGA console buffer in user processes --- src/kernel/main.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/kernel') diff --git a/src/kernel/main.c b/src/kernel/main.c index 729e39d..004be15 100644 --- a/src/kernel/main.c +++ b/src/kernel/main.c @@ -10,9 +10,6 @@ static void run_init(struct kmain_info *info) { struct process *proc = process_new(); void *init_base = (void*) 0x200000; - // map VGA for testing - pagedir_map(proc->pages, 0xB8000, 0xB8000, true, true); - // map the module as rw for (uintptr_t off = 0; off < info->init.size; off += PAGE_SIZE) pagedir_map(proc->pages, init_base + off, info->init.at + off, -- cgit v1.2.3