aarch64: feature parity with riscv64

This commit is contained in:
2025-03-18 20:02:18 +02:00
committed by Eugene Rossokha
parent 1a8d842479
commit 734cd7eb0e
12 changed files with 356 additions and 192 deletions
+2
View File
@@ -51,6 +51,7 @@ const SupportedArch = enum {
},
.aarch64 => {
kernel.entry = .{ .symbol_name = "__aa64_entry" };
kernel.link_z_max_page_size = 0x1000;
kernel.setLinkerScript(b.path("etc/aarch64-unknown-none.ld"));
kernel.addCSourceFiles(.{
@@ -162,6 +163,7 @@ pub fn build(b: *std.Build) anyerror!void {
.name = "kernel",
.root_module = kernel_module,
.pic = true,
.use_lld = true,
});
kernel.pie = true;