summaryrefslogtreecommitdiff
path: root/src/stem/kmain.c
diff options
context:
space:
mode:
authorAlexis211 <alexis211@gmail.com>2010-02-03 15:22:30 +0100
committerAlexis211 <alexis211@gmail.com>2010-02-03 15:22:30 +0100
commit9c4310651a91e64c10a17f3190c895a49096aeb1 (patch)
treeaf87d115512249458f80f184d53db403c3f0bb0f /src/stem/kmain.c
parent7f72a900c12ba62db12df0872cb66f79a27aa9d9 (diff)
downloadTCE-9c4310651a91e64c10a17f3190c895a49096aeb1.tar.gz
TCE-9c4310651a91e64c10a17f3190c895a49096aeb1.zip
Reogranization
Diffstat (limited to 'src/stem/kmain.c')
-rw-r--r--src/stem/kmain.c44
1 files changed, 0 insertions, 44 deletions
diff --git a/src/stem/kmain.c b/src/stem/kmain.c
deleted file mode 100644
index 6fab4ed..0000000
--- a/src/stem/kmain.c
+++ /dev/null
@@ -1,44 +0,0 @@
-#include "types.h"
-#include "multiboot.h"
-#include "monitor.h"
-#include "idt.h"
-#include "gdt.h"
-#include "paging.h"
-#include "mem.h"
-#include "sys.h"
-#include "timer.h"
-#include "task.h"
-
-void kmain_othertask(void *data) {
- while(1) monitor_write("2task ");
-}
-
-void kmain_stage2(void *data) {
- sti();
- thread_new(current_thread->process, kmain_othertask, 0);
- while (1) monitor_write("TASK1 ");
-}
-
-void kmain(struct multiboot_info_t* mbd, int32_t magic) {
- size_t totalRam = 0;
-
- mem_placementAddr = (size_t)&end;
-
- monitor_clear();
-
- if (magic != MULTIBOOT_BOOTLOADER_MAGIC) {
- PANIC("wrong multiboot magic number.");
- }
-
- monitor_write("Grapes::Stem is booting\n");
-
- idt_init();
-
- totalRam = ((mbd->mem_upper + mbd->mem_lower) * 1024);
- paging_init(totalRam);
- gdt_init();
- paging_cleanup();
- kheap_init();
- timer_init(20);
- tasking_init(kmain_stage2, 0);
-}