From b9a988061e8220c5ef2406f5cd2221bf3f1b435d Mon Sep 17 00:00:00 2001 From: Alexis211 Date: Fri, 9 Oct 2009 16:29:05 +0200 Subject: Exiting from a thread now works without hanging everything. --- Source/Kernel/Core/Sys.ns.cpp | 2 +- Source/Kernel/Core/kmain.wtf.cpp | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'Source/Kernel/Core') diff --git a/Source/Kernel/Core/Sys.ns.cpp b/Source/Kernel/Core/Sys.ns.cpp index c3561f2..a54c387 100644 --- a/Source/Kernel/Core/Sys.ns.cpp +++ b/Source/Kernel/Core/Sys.ns.cpp @@ -125,7 +125,7 @@ void halt() { asm volatile("cli"); Log::close(); String message("MELON SEZ : KTHXBYE, U CAN NAOW TURNZ OFF UR COMPUTER."); - SimpleVT vt(3, message.size() + 16, 6, 0); + SimpleVT vt(3, message.size() + 16, 7, 6); vt.map(); vt << "\n\t" << message; while (1) asm volatile("cli"); diff --git a/Source/Kernel/Core/kmain.wtf.cpp b/Source/Kernel/Core/kmain.wtf.cpp index 924cfc2..f1efc70 100644 --- a/Source/Kernel/Core/kmain.wtf.cpp +++ b/Source/Kernel/Core/kmain.wtf.cpp @@ -75,8 +75,8 @@ void kmain(multiboot_info_t* mbd, u32int magic) { melonLogoVT->map(1); //Create a VT for logging what kernel does - SimpleVT *kvt = new ScrollableVT(5, 69, 10, KVT_FGCOLOR, KVT_BGCOLOR); - kvt->map(20); + SimpleVT *kvt = new ScrollableVT(3, 69, 10, KVT_FGCOLOR, KVT_BGCOLOR); + kvt->map(22); INFO(kvt); *kvt << "Lower ram : " << (s32int)mbd->mem_lower << "k, upper : " << (s32int)mbd->mem_upper << "k.\n"; INFO(kvt); *kvt << "Placement address : " << (u32int)Mem::placementAddress << "\n"; @@ -131,7 +131,7 @@ void kmain(multiboot_info_t* mbd, u32int magic) { Log::log(KL_STATUS, "kmain : Kernel shell launched"); while (KernelShell::getInstances() > 0) { - Task::currentThread->sleep(10); + Task::currentThread->sleep(100); } Log::log(KL_STATUS, "kmain : All kernel shells finished. Halting."); -- cgit v1.2.3