started project with basic efi setup
This commit is contained in:
+15
@@ -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;
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
const std = @import("std");
|
||||
const Io = std.Io;
|
||||
|
||||
const danos = @import("danos");
|
||||
|
||||
pub fn main() !void {
|
||||
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
//! By convention, root.zig is the root source file when making a package.
|
||||
Reference in New Issue
Block a user