Memory detection in protected mode?
Posted: Fri Nov 02, 2012 9:32 am
Hey there, I'm at the awkward point where although I understand memory allocation principles (free-list, best/first-fit algorithms etc), I'm trying to work out how to implement it without accidentally writing into some memory-mapped device's I/O port. So detecting a memory map for the machine would seem like a good idea. However, quoting the wiki:
andOne of the most vital pieces of information that an OS needs in order to initialize itself is a map of the available RAM on a machine. Fundamentally, the best way (and really the only way) an OS can get that information is by using the BIOS.
Does this mean that there is no reliable way to get a map of the available RAM from Protected Mode?Unfortunately, in Protected mode, almost all BIOS functions become unavailable