Update to Zig 0.15.2

This commit is contained in:
ktkk 2025-11-07 10:29:21 +00:00
parent dc6f7e486f
commit a5c560d2b9
4 changed files with 64 additions and 33 deletions

View file

@ -20,7 +20,7 @@ export var mutliboot: MultibootHeader align(4) linksection(".multiboot") = .{
var stack_bytes: [16 * 1024]u8 align(16) linksection(".bss") = undefined;
export fn _start() callconv(.Naked) noreturn {
export fn _start() callconv(.naked) noreturn {
asm volatile (
\\ movl %[stack_top], %%esp
\\ movl %%esp, %%ebp
@ -68,11 +68,12 @@ fn klog(
const c = console.get();
const color = switch (level) {
.err => Console.ConsoleColor.lightRed,
.warn => Console.ConsoleColor.lightBrown,
.info => Console.ConsoleColor.lightBlue,
.debug => Console.ConsoleColor.lightGreen,
.err => Console.ConsoleColor.light_red,
.warn => Console.ConsoleColor.light_brown,
.info => Console.ConsoleColor.light_blue,
.debug => Console.ConsoleColor.light_green,
};
c.putChar('[');
c.setColor(color, Console.ConsoleColor.black);
c.puts(level.asText());