Detecting Usable Physical Memory

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
onlyonemac
Member
Member
Posts: 1146
Joined: Sat Mar 01, 2014 2:59 pm

Re: Detecting Usable Physical Memory

Post by onlyonemac »

Antti wrote:There is a little misconception. There are no bugs that change the di register value after a call to the function. If you wanted to increment the di register, you would always have to do it manually. [...] The point is that some implementations assume the pointer is pointing to the same buffer all the time, e.g. manually incrementing it between calls to make a linear array of entries makes the pointer point to a new buffer every time and that is the problem for some BIOS implementations.
Changes promptly reverted. But I'm not going to do the buffer re-use thing.
When you start writing an OS you do the minimum possible to get the x86 processor in a usable state, then you try to get as far away from it as possible.

Syntax checkup:
Wrong: OS's, IRQ's, zero'ing
Right: OSes, IRQs, zeroing
Post Reply