Made the kernel higher half

This commit is contained in:
Lorenzo Torres 2026-04-16 15:24:36 +02:00
parent ed25810927
commit 62fefbc836
8 changed files with 336 additions and 149 deletions

View file

@ -12,13 +12,15 @@ pub fn build(b: *std.Build) void {
const kernel = b.addExecutable(.{
.name = "kernel",
.root_module = b.createModule(.{
.root_source_file = b.path("src/main.zig"),
.root_source_file = b.path("src/kernel.zig"),
.target = target,
.optimize = optimize,
.code_model = .medium,
}),
});
kernel.root_module.addAssemblyFile(b.path("src/boot.S"));
kernel.setLinkerScript(b.path("linker.ld"));
b.installArtifact(kernel);