Rolling Your Own Bootloader: Difference between revisions
→Loaded. Gathering Informations: merged information from Bootloader
[unchecked revision] | [unchecked revision] |
(→Loading ... Please wait ...: merged parts from bootloader) |
(→Loaded. Gathering Informations: merged information from Bootloader) |
||
Line 84:
== Loaded. Gathering Informations ==
The next step consist of collecting as much information as you can/need: [[How Do I Determine The Amount Of RAM|amount of installed RAM]], available [[Getting VBE Mode Info|video modes]] and things alike are easier to do in real mode, so better do them while in [[Real Mode]] than trying to come back to real mode for a trip later. Of course the exact requirements depend on your kernel.
A very simple solution here is to organize your informations as a flat table (ala [[BIOS|BIOS data area]]). An alternative could be to add those informations as a structured flow: you keep an index at a well-known address (or at some address you'll pass to the kernel when loaded) and that index gives for each "key" the address of the corresponding data structure. E.g.
|