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/init/main.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src/init/main.c') diff --git a/src/init/main.c b/src/init/main.c index fda68b7..33a4372 100644 --- a/src/init/main.c +++ b/src/init/main.c @@ -13,12 +13,6 @@ int main() { debuglog("hello from init! ", sizeof("hello from init! ") - 1); - // change the colors of VGA text - // doesn't require a lot of code, but still shows that it's working - uint8_t *vga = (void*) 0xB8000; - for (int i = 0; i < 80 * 25; i++) - vga[(i << 1) + 1] = 0x4e; - // try to mess with kernel memory uint8_t *kernel = (void*) 0x100000; *kernel = 0; // should segfault -- cgit v1.2.3