mirror of
https://github.com/rdmsr/zag.git
synced 2026-11-01 23:58:21 +00:00
all: rework source tree structure
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
pub const KSym = extern struct {
|
||||
addr: u64,
|
||||
name_ptr: [*]const u8,
|
||||
name_len: usize,
|
||||
};
|
||||
|
||||
extern const ksyms_array: [0]KSym;
|
||||
extern const ksyms_count: usize;
|
||||
|
||||
pub fn get_symbols() []const KSym {
|
||||
const ptr = @as([*]const KSym, @ptrCast(&ksyms_array));
|
||||
return ptr[0..ksyms_count];
|
||||
}
|
||||
+1
-1
@@ -58,7 +58,7 @@ pub fn addRun(b: *std.Build, kernel: *std.Build.Step.Compile, loader: *std.Build
|
||||
|
||||
switch (plat.arch) {
|
||||
.x86_64 => {
|
||||
qemu.addArgs(&.{ "-serial", "stdio", "-m", "1G", "-smp", "1" });
|
||||
qemu.addArgs(&.{ "-serial", "stdio", "-m", "1G", "-smp", "4" });
|
||||
|
||||
if (!debug and builtin.target.os.tag == .linux and builtin.cpu.arch == .x86_64) qemu.addArgs(&.{ "-enable-kvm", "-cpu", "host,+invtsc" });
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user