aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorMarvin Borner2020-08-09 16:51:01 +0200
committerMarvin Borner2020-08-09 16:51:01 +0200
commit162d024a53e1e31e00ff0b6f47dd4590edebc551 (patch)
tree711d3886c300dfaddffdafaa89b690b45eb2101d /src/main.c
parent79f2fa136f26a0b87917336e089485712ee49bd6 (diff)
Heavy restructuring of libc, kernel and apps
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c50
1 files changed, 0 insertions, 50 deletions
diff --git a/src/main.c b/src/main.c
deleted file mode 100644
index 17d6267..0000000
--- a/src/main.c
+++ /dev/null
@@ -1,50 +0,0 @@
-// MIT License, Copyright (c) 2020 Marvin Borner
-
-#include "config.h"
-#include <boot.h>
-#include <cpu.h>
-#include <def.h>
-#include <fs.h>
-#include <gui.h>
-#include <interrupts.h>
-#include <keyboard.h>
-#include <load.h>
-#include <print.h>
-#include <serial.h>
-#include <syscall.h>
-#include <timer.h>
-
-u32 HEAP = 0x00200000;
-u32 HEAP_START;
-
-void kernel_main(struct vid_info *vid_info)
-{
- HEAP_START = HEAP; // For malloc function
-
- // Initialize VESA video
- vesa_init(vid_info->info);
- u32 terminal_background[3] = { 0, 0, 0 };
- vesa_fill(terminal_background);
-
- // Serial connection
- serial_install();
- serial_print("\nConnected.\n");
-
- // Install drivers
- interrupts_install();
- timer_install();
- keyboard_install();
-
- // Enable drivers
- sti();
-
- ls_root();
- gui_init(FONT_PATH);
-
- gui_term_write("Wake up, " USERNAME "...\n");
-
- syscall_init();
- proc_init();
-
- idle();
-}