hachem.wtf
aboutsummaryrefslogtreecommitdiff
path: root/boot/elf.zig
diff options
context:
space:
mode:
authorhachem <im@hachem.wtf>2026-10-04 02:02:15 +0200
committerhachem <im@hachem.wtf>2026-10-04 02:02:15 +0200
commit7c1bd03a71cccfcf48e79d241787021b0de98e73 (patch)
treeb7131a1f4eee60d24781d3f549d191e17793c282 /boot/elf.zig
parent627f05098785327744e666c9149375125499d2ff (diff)
feat: add more user programs
Diffstat (limited to 'boot/elf.zig')
-rw-r--r--boot/elf.zig10
1 files changed, 8 insertions, 2 deletions
diff --git a/boot/elf.zig b/boot/elf.zig
index a9199db..906e380 100644
--- a/boot/elf.zig
+++ b/boot/elf.zig
@@ -1,2 +1,8 @@
-// load c program
-pub const hello_elf = @embedFile("user_program");
+// the embedded ring 3 programs, boot copies each to frames at startup
+pub const Program = struct { name: []const u8, bytes: []const u8 };
+
+pub const programs = [_]Program{
+ .{ .name = "hexview", .bytes = @embedFile("user_hexview") },
+ .{ .name = "calc", .bytes = @embedFile("user_calc") },
+ .{ .name = "primes", .bytes = @embedFile("user_primes") },
+};