Skip to content

Commit

Permalink
mow
Browse files Browse the repository at this point in the history
  • Loading branch information
TalonFloof authored Oct 7, 2024
1 parent 68cb394 commit e49d768
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions kobold/kernel/physmem.zig
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ pub const FreeHeader = struct {
next: ?*FreeHeader = null,
};

pub const FreeCacheHeader = struct {
prev: ?*FreeCacheHeader = null,
next: ?*FreeCacheHeader = null,
bitmap: std.bit_set.StaticBitSet(128) = std.bit_set.StaticBitSet(128),
};

var internalFreeListBuf: [8]FreeHeader = [_]FreeHeader{.{}} ** 8;

var firstFree: ?*FreeHeader = null;
Expand Down

0 comments on commit e49d768

Please sign in to comment.