rework entry point

This commit is contained in:
Loïc Grégoire
2026-07-17 21:26:13 -04:00
parent a79c7a07cb
commit 3c72101228
7 changed files with 8 additions and 25 deletions
+2 -2
View File
@@ -57,8 +57,8 @@ extern fn jump_to_kernel(loader_info: usize, stack: usize, entry: usize) void;
pub fn loader_main(kernel: *anyopaque) void {
r.mem.init();
const entry = load_kernel(kernel);
const stack = r.mem.alloc(1024 * 32);
const stack = r.mem.alloc(1024 * 16);
std.log.info("jumping to {x} with stack {x}", .{ entry, stack });
jump_to_kernel(@intFromPtr(&r.loader_info), stack + (1024 * 32), entry);
jump_to_kernel(@intFromPtr(&r.loader_info), stack + (1024 * 16), entry);
}