diff options
| author | hachem <im@hachem.wtf> | 2026-09-25 21:21:09 +0200 |
|---|---|---|
| committer | hachem <im@hachem.wtf> | 2026-09-25 21:21:09 +0200 |
| commit | 09982d80c45805715984cc1cae96c37e4fc148c3 (patch) | |
| tree | f711d6e7f4d4cb2d4dcb555d6a139aae343d7334 /boot/heap.zig | |
| parent | fd3f51eecaecc12806a573c38263df1de43ee8c2 (diff) | |
feat: scheduler + cleanup
Diffstat (limited to 'boot/heap.zig')
| -rw-r--r-- | boot/heap.zig | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/boot/heap.zig b/boot/heap.zig index 3fd9f8c..a845f60 100644 --- a/boot/heap.zig +++ b/boot/heap.zig @@ -1,17 +1,17 @@ -// this just grabs a contiguous chunk of frams from the PMM and then -// hands out a bump allocator, this just gives std.mem.Allocator which -// we'll pass to the revo VM later. FixedBufferAllocator never reclaims +// this just grabs a contiguous chunk of frams from the pmm and then +// hands out a bump allocator, this just gives std.mem.allocator which +// well pass to the revo vm later. fixedbufferallocator never reclaims // freed space unless you free in reverse order which is ehhhhh, fine ig -// for bootstrapping. +// for bootstrapping // -// TODO: swap fixed buffer allocator for a free list allocator +// todo: swap fixed buffer allocator for a free list allocator const std = @import("std"); const pmm = @import("pmm.zig"); const serial = @import("serial.zig"); -// 32 MiB. -// NOTE: bump if the VM needs more +// 32 mib +// note: bump if the vm needs more const HEAP_PAGES: usize = 8192; var fba: std.heap.FixedBufferAllocator = undefined; |
