HellOS icon indicating copy to clipboard operation
HellOS copied to clipboard

Why request meminfo and align in multiboot header if neither are used?

Open pixelherodev opened this issue 5 years ago • 1 comments

From the Multiboot Specification:



If bit 0 in the ‘flags’ word is set, then all boot modules loaded along with the operating system must be aligned on page (4KB) boundaries. Some operating systems expect to be able to map the pages containing boot modules directly into a paged address space during startup, and thus need the boot modules to be page-aligned.

If bit 1 in the ‘flags’ word is set, then information on available memory via at least the ‘mem_*’ fields of the Multiboot information structure (see Boot information format) must be included. If the boot loader is capable of passing a memory map (the ‘mmap_*’ fields) and one exists, then it may be included as well. 

However, this OS does not at any point use the multiboot info structure, ever! Is this because it's meant to be used in the future?

pixelherodev avatar Oct 13 '19 05:10 pixelherodev

Likely because it's simply copied verbatim from the Bare Bones tutorial. No idea why they chose to set those flags.

sagehane avatar May 04 '21 18:05 sagehane