From 29ea3208b004f15dafa48ae29a75ba7f0c093a74 Mon Sep 17 00:00:00 2001 From: Michal Idziorek Date: Sun, 17 May 2015 17:14:07 +0200 Subject: working on vt52 layer --- kernel/kernel.c | 30 ++++++++++++++++++++++++------ 1 file changed, 24 insertions(+), 6 deletions(-) (limited to 'kernel/kernel.c') diff --git a/kernel/kernel.c b/kernel/kernel.c index a3df0b3..0a4b863 100644 --- a/kernel/kernel.c +++ b/kernel/kernel.c @@ -28,14 +28,33 @@ #include "video/vesa.h" #include "multiboot.h" +#include "terminal/vt52.h" + + +// +// The Foolish structure of Fool OS! +// +static fool_os foolos; + +fool_os *get_fool() +{ + return &foolos; +} + void kernel_main(uint32_t eax,uint32_t ebx) { + // - // Init Console - // - console_init(); + // Setup main tty + // + scr_clear(); + term_screen screen; + screen.put_char=console_put_char; + vt52_tty tty=vt52_init(&screen); + get_fool()->tty1=&tty; + // // PR @@ -43,13 +62,11 @@ void kernel_main(uint32_t eax,uint32_t ebx) log(FOOLOS_MODULE_NAME,FOOLOS_LOG_INFO,"%s - compiled on %s at %s",KERNEL_VERSION,__DATE__,__TIME__); - // // Configuring the PIT timer. // timer_init(); - // // GDT // @@ -98,6 +115,7 @@ void kernel_main(uint32_t eax,uint32_t ebx) smp_start_aps(&procdata,"/boot/mp.bin"); //will be copied over mbr + // // Activate Virtual Memory (paging) // @@ -112,13 +130,13 @@ void kernel_main(uint32_t eax,uint32_t ebx) //pci_init(); + // // Initialize Multitasking // task_init(dir); - // // Abvoe should never returon // -- cgit v1.2.3