Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion hellos.zig
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
const std = @import("std");
const builtin = @import("builtin");

const MultiBoot = packed struct {
Expand Down Expand Up @@ -34,8 +35,10 @@ pub fn panic(msg: []const u8, error_return_trace: ?*builtin.StackTrace) noreturn
}

fn kmain() void {
const message = std.fmt.comptimePrint("Hello Kernel World from Zig {}!", .{builtin.zig_version});

terminal.initialize();
terminal.write("Hello, Kernel World from Zig 0.7.1!");
terminal.write(message);
}

// Hardware text mode color constants
Expand Down