pluto/src/kernel/panic.zig
ED 60164d9252 Added runtime tests for TTY
Removed types
Styling
Added printing error and multi line string for logo


Fix panic after rebase
2019-10-01 11:52:23 +01:00

13 lines
415 B
Zig

const builtin = @import("builtin");
const tty = @import("tty.zig");
const arch = @import("arch.zig").internals;
const log = @import("log.zig");
pub fn panic(trace: ?*builtin.StackTrace, comptime format: []const u8, args: ...) noreturn {
@setCold(true);
arch.disableInterrupts();
log.logInfo("KERNEL PANIC\n");
log.logInfo(format, args);
log.logInfo("HALTING\n");
arch.haltNoInterrupts();
}