diff options
Diffstat (limited to 'boot/elf.zig')
| -rw-r--r-- | boot/elf.zig | 10 |
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") }, +}; |
