sylveos

Toy Operating System
Log | Files | Refs

commit b9bb1a3d004151f13cba3a17489e76cf4ab05712
parent 0654143545f9d3d258d0adbdee7d70aa1c817bca
Author: Sylvia Ivory <git@sivory.net>
Date:   Thu, 15 Jan 2026 17:41:20 -0800

Slight reorganization

Diffstat:
Mbuild.zig | 4++--
Mfake-pi/main.zig | 4++--
Rsrc/mem.zig -> pi/mem.zig | 0
3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/build.zig b/build.zig @@ -4,7 +4,7 @@ const config = @import("build.zig.zon"); const add_exe_ty = *const fn (exe_name: []const u8, path: std.Build.LazyPath, b: *std.Build) anyerror!*std.Build.Step.Compile; fn add_exe_fake_pi(exe_name: []const u8, path: std.Build.LazyPath, b: *std.Build) !*std.Build.Step.Compile { - const pi = b.createModule(.{ + const boot = b.createModule(.{ .root_source_file = path, .target = b.graph.host, .optimize = .ReleaseSafe, @@ -16,7 +16,7 @@ fn add_exe_fake_pi(exe_name: []const u8, path: std.Build.LazyPath, b: *std.Build .optimize = .Debug, }); - fake_pi.addImport("pi", pi); + fake_pi.addImport("boot", boot); const exe_name_fake = try std.fmt.allocPrint(b.allocator, "{s}-fake-pi", .{exe_name}); defer b.allocator.free(exe_name_fake); diff --git a/fake-pi/main.zig b/fake-pi/main.zig @@ -1,9 +1,9 @@ const std = @import("std"); -const pi = @import("pi"); +const boot = @import("boot"); const root = @import("root.zig"); pub fn main() void { root.initialize(); - pi.kmain(); + boot.kmain(); } diff --git a/src/mem.zig b/pi/mem.zig