From 7c1bd03a71cccfcf48e79d241787021b0de98e73 Mon Sep 17 00:00:00 2001 From: hachem Date: Sun, 4 Oct 2026 02:02:15 +0200 Subject: feat: add more user programs --- boot/elf.zig | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'boot/elf.zig') 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") }, +}; -- cgit v1.3