diff options
Diffstat (limited to 'boot/limine.zig')
| -rw-r--r-- | boot/limine.zig | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/boot/limine.zig b/boot/limine.zig index 3d18b31..947a5be 100644 --- a/boot/limine.zig +++ b/boot/limine.zig @@ -1,4 +1,4 @@ -// Limine scans the loaded image for these magic numbers, BaseRevision is +// limine scans the loaded image for these magic numbers, baserevision is // a handshake, essentially we ask limine for rev 3, and if it supports it, // limine zeros it out pub const BaseRevision = extern struct { @@ -39,14 +39,14 @@ pub const Framebuffer = extern struct { height: u64, pitch: u64, // bytes per row (not always width*bpp/8) bpp: u16, // bits per pixel - memory_model: u8, // 1 = RGB + memory_model: u8, // 1 = rgb red_mask_size: u8, red_mask_shift: u8, green_mask_size: u8, green_mask_shift: u8, blue_mask_size: u8, blue_mask_shift: u8, - // 7 bytes of padding land here (extern-struct alignment before edid_size) + // 7 bytes of padding land here (extern struct alignment before edid_size) edid_size: u64, edid: ?*anyopaque, // response revision 1 and up, unused for now: @@ -66,8 +66,8 @@ pub const FramebufferRequest = extern struct { response: ?*FramebufferResponse = null, }; -// ask limine for a bigger bootstrap stack than its ~64 KiB default cause -// revo's VM init builds a large struct on the stack and runs a fat recursive +// ask limine for a bigger bootstrap stack than its ~64 kib default cause +// revos vm init builds a large struct on the stack and runs a fat recursive // descent parser to register its stdlib, which page faults the machine pub const StackSizeResponse = extern struct { revision: u64, @@ -80,9 +80,9 @@ pub const StackSizeRequest = extern struct { stack_size: u64, }; -// HHDM = higher-half direct map, limine linearly maps ALL of physical memory +// hhdm = higher half direct map, limine linearly maps all of physical memory // starting at `offset`, so any physical address p is reachable at p + offset -// This is how we touch physical frames without setting up our own page tables +// this is how we touch physical frames without setting up our own page tables // and this is how my hypothetical future girlfriend should touch my pointer pub const HhdmResponse = extern struct { revision: u64, @@ -116,8 +116,8 @@ pub const MemoryMapEntry = extern struct { type: MemoryType, }; -// NOTE: `entries` is an array of POINTERS to entries, not the entries inline -// NOTE: i will forget this +// note: `entries` is an array of pointers to entries, not the entries inline +// note: i will forget this pub const MemoryMapResponse = extern struct { revision: u64, entry_count: u64, |
