summaryrefslogtreecommitdiff
path: root/src/init/main.c
diff options
context:
space:
mode:
authordzwdz2021-07-22 19:53:52 +0200
committerdzwdz2021-07-22 19:53:52 +0200
commit91c637d847744ba410cbf0e20c62c485e1f6153d (patch)
treeecbdc3b219442b728037b5fb6131234c41671462 /src/init/main.c
parent32baea7d692191d7b6fdac5a93e95ca5e6e1f59a (diff)
don't map the VGA console buffer in user processes
Diffstat (limited to 'src/init/main.c')
-rw-r--r--src/init/main.c6
1 files changed, 0 insertions, 6 deletions
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