Skip to content

Commit

Permalink
Merge pull request #19 from jmbaur/rework
Browse files Browse the repository at this point in the history
Rework client/server relationship
  • Loading branch information
jmbaur authored May 9, 2024
2 parents 3075f82 + 4f5266e commit 4b86c7c
Show file tree
Hide file tree
Showing 16 changed files with 333 additions and 416 deletions.
12 changes: 6 additions & 6 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions kernel-configs/generic
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ CONFIG_IMA_APPRAISE_MODSIG=y
CONFIG_IMA_DEFAULT_HASH_SHA256=y
CONFIG_IMA_KEXEC=y
CONFIG_IMA_MEASURE_ASYMMETRIC_KEYS=y
CONFIG_INOTIFY_USER=y
CONFIG_INPUT=y
CONFIG_INPUT_KEYBOARD=y
CONFIG_INTEGRITY=y
Expand Down
1 change: 1 addition & 0 deletions kernel-configs/qemu
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ CONFIG_BLK_MQ_VIRTIO=y
CONFIG_E1000=y
CONFIG_FW_CFG_SYSFS=y
CONFIG_I2C_VIRTIO=y
CONFIG_IKCONFIG=y
CONFIG_NET_9P=y
CONFIG_NET_9P_VIRTIO=y
CONFIG_SCSI_VIRTIO=y
Expand Down
2 changes: 1 addition & 1 deletion src/boot.zig
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ fn autoboot(stop_fd: posix.fd_t) !bool {

std.log.debug("autoboot started", .{});

var bls = BootLoaderSpec.init(std.heap.page_allocator);
var bls = BootLoaderSpec.init();
var boot_loader: BootLoader = .{ .bls = &bls };
defer {
boot_loader.teardown();
Expand Down
4 changes: 2 additions & 2 deletions src/boot/bls.zig
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,9 @@ pub const BootLoaderSpec = struct {
/// system). This includes USB mass-storage devices, SD cards, etc.
external_mounts: []Mount,

pub fn init(backing_allocator: std.mem.Allocator) @This() {
pub fn init() @This() {
return .{
.arena = std.heap.ArenaAllocator.init(backing_allocator),
.arena = std.heap.ArenaAllocator.init(std.heap.page_allocator),
.internal_mounts = &.{},
.external_mounts = &.{},
};
Expand Down
Loading

0 comments on commit 4b86c7c

Please sign in to comment.