60164d9252
Removed types Styling Added printing error and multi line string for logo Fix panic after rebase
13 lines
415 B
Zig
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();
|
|
}
|