mirror of
https://github.com/rdmsr/zag.git
synced 2026-10-29 06:28:21 +00:00
refactor: move directories around a bit
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
pub const cpu = @import("cpu.zig");
|
||||
pub const name = "amd64";
|
||||
@@ -0,0 +1 @@
|
||||
pub const name = "um";
|
||||
@@ -1,7 +1,7 @@
|
||||
const b = @import("base");
|
||||
const ke = b.ke;
|
||||
const pl = b.pl;
|
||||
const amd64 = pl.impl;
|
||||
const amd64 = b.arch;
|
||||
|
||||
const std = @import("std");
|
||||
|
||||
|
||||
+2
-1
@@ -2,6 +2,7 @@ const std = @import("std");
|
||||
const b = @import("base");
|
||||
const pl = b.pl;
|
||||
const ke = b.ke;
|
||||
const arch = b.arch;
|
||||
const ki = ke.private;
|
||||
const ex = b.ex;
|
||||
|
||||
@@ -17,7 +18,7 @@ pub fn init(boot_info: *pl.BootInfo) linksection(b.init) void {
|
||||
thread0.priority = 0;
|
||||
thread0.priority_class = .Idle;
|
||||
|
||||
std.log.info("Zag for {s}, cmdline is \"{?s}\"", .{ pl.name, boot_info.cmdline });
|
||||
std.log.info("Zag for {s} ({s}), cmdline is \"{?s}\"", .{ pl.name, arch.name, boot_info.cmdline });
|
||||
|
||||
ex.private.init(boot_info);
|
||||
}
|
||||
|
||||
@@ -1,9 +1,11 @@
|
||||
const b = @import("base");
|
||||
pub const cpu = @import("cpu.zig");
|
||||
const ki = b.ke.private;
|
||||
const amd64 = b.arch;
|
||||
const std = @import("std");
|
||||
|
||||
pub const name = "amd64";
|
||||
const ki = b.ke.private;
|
||||
const cpu = amd64.cpu;
|
||||
|
||||
pub const name = "PC";
|
||||
|
||||
const com1 = 0x3F8;
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
const config = @import("config");
|
||||
|
||||
pub const impl = if (@hasDecl(config, "CONFIG_ARCH_AMD64"))
|
||||
@import("amd64/impl.zig")
|
||||
@import("pc/impl.zig")
|
||||
else if (@hasDecl(config, "CONFIG_ARCH_UM"))
|
||||
@import("um/impl.zig")
|
||||
else
|
||||
|
||||
@@ -4,6 +4,7 @@ pub const ex = @import("ex/root.zig");
|
||||
pub const pl = @import("platform/root.zig");
|
||||
pub const rtl = @import("rtl");
|
||||
pub const ksyms = @import("ksyms");
|
||||
pub const arch = @import("arch");
|
||||
|
||||
pub const init = ".text.init";
|
||||
pub const percpu_init = ".percpu_init_array";
|
||||
|
||||
Reference in New Issue
Block a user