Skip to content

Commit

Permalink
surtr: use usingnamespace to export ach code
Browse files Browse the repository at this point in the history
Signed-off-by: smallkirby <[email protected]>
  • Loading branch information
smallkirby committed Oct 18, 2024
1 parent 4ff84c7 commit 6abccd8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion surtr/arch.zig
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//! Thin wrapper to access arch-specific modules.

const builtin = @import("builtin");
pub const impl = switch (builtin.target.cpu.arch) {
pub usingnamespace switch (builtin.target.cpu.arch) {
.x86_64 => @import("arch/x86/arch.zig"),
else => @compileError("Unsupported architecture."),
};
2 changes: 1 addition & 1 deletion surtr/boot.zig
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const log = std.log.scoped(.surtr);

const blog = @import("log.zig");
const defs = @import("defs.zig");
const arch = @import("arch.zig").impl;
const arch = @import("arch.zig");

const page_size = arch.page.page_size_4k;
const page_mask = arch.page.page_mask_4k;
Expand Down

0 comments on commit 6abccd8

Please sign in to comment.