main: cleanup, terminate boot task when done
This commit is contained in:
parent
276e73a198
commit
b7fe260871
1 changed files with 3 additions and 3 deletions
|
|
@ -24,13 +24,13 @@ export fn kmain(magic: u32, info: *const multiboot.MultibootInfo) noreturn {
|
||||||
println("--- core initialization ---");
|
println("--- core initialization ---");
|
||||||
vmem.init();
|
vmem.init();
|
||||||
pci.scan();
|
pci.scan();
|
||||||
|
println("--- finished booting --- ");
|
||||||
|
|
||||||
task.cleaner_task = task.new(@ptrToInt(task.cleaner_loop)) catch unreachable;
|
task.cleaner_task = task.new(@ptrToInt(task.cleaner_loop)) catch unreachable;
|
||||||
_ = task.new(@ptrToInt(topbar)) catch unreachable;
|
_ = task.new(@ptrToInt(topbar)) catch unreachable;
|
||||||
task.preempt();
|
_ = task.new(@ptrToInt(console.loop)) catch unreachable;
|
||||||
|
|
||||||
console.loop();
|
task.terminate();
|
||||||
unreachable;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn panic(a: []const u8, b: ?*builtin.StackTrace) noreturn {
|
pub fn panic(a: []const u8, b: ?*builtin.StackTrace) noreturn {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue