started project with basic efi setup

This commit is contained in:
2026-07-01 18:32:56 +01:00
commit 3c8656fb25
7 changed files with 225 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
const std = @import("std");
const uefi = std.os.uefi;
pub fn main() uefi.Status {
// std's start code populates these globals before calling main.
const con_out = uefi.system_table.con_out orelse return .device_error;
// UEFI console output expects a null-terminated UTF-16 string.
const message = std.unicode.utf8ToUtf16LeStringLiteral("Hello from Zig UEFI!\r\n");
_ = con_out.outputString(message) catch {};
while (true) {}
return .success;
}
+8
View File
@@ -0,0 +1,8 @@
const std = @import("std");
const Io = std.Io;
const danos = @import("danos");
pub fn main() !void {
}
+1
View File
@@ -0,0 +1 @@
//! By convention, root.zig is the root source file when making a package.