How to ensure not to overwrite multiboot information?
Posted: Thu Apr 10, 2014 7:54 am
I am following the bare bones tutorial.
In multiboot specification stated that:
I mean, if I define a variable for example in main function, may it overwrite that structure or it falls under memory reserved for the kernel? And to make it more clear to myself, is the memory for the variable taken from the 16KiB stack defined in boot.s?
In multiboot specification stated that:
How can I avoid overwriting an unknown memory location?The Multiboot information structure and its related substructures may be placed anywhere in memory by the boot loader (with the exception of the memory reserved for the kernel and boot modules, of course). It is the operating system's responsibility to avoid overwriting this memory until it is done using it.
I mean, if I define a variable for example in main function, may it overwrite that structure or it falls under memory reserved for the kernel? And to make it more clear to myself, is the memory for the variable taken from the 16KiB stack defined in boot.s?