in memory without a map
Posted: Sat Oct 22, 2005 5:24 pm
I've read the How do I determine the amount of RAM? article, and I got some questions. I want to have the question of memory "well and trully sorted out" before I do anything with it.
1.
I only get the *size* of the extended memory. (from CMOS or multiboot)
If GRUB failed to make a map, I doubt I can do better.
- Should I just assume that all of that is usable RAM?
- Should I probe it?
- Can the 386, 486 have upper-memory-mapped stuff to watch out for? (ISA?)
- Is there a proper way to detect it?
- Can this happen with a Pentium? (which has APIC, at least)
I'd like to keep supporting 386/486, if possible.
2. (out of curiosity)
Where does that "99" number come from? I see that CMOS has 2 bytes for "extended memory", that's 64M=64K*1K...
1.
What if I'm in protected mode (booted by GRUB), and I get *NO* memory map? (that is the case with my 486)WE DISCOURAGE YOU FROM DIRECTLY PROBING MEMORY
Use BIOS to get a memory map, or use GRUB.
I only get the *size* of the extended memory. (from CMOS or multiboot)
If GRUB failed to make a map, I doubt I can do better.
- Should I just assume that all of that is usable RAM?
- Should I probe it?
- Can the 386, 486 have upper-memory-mapped stuff to watch out for? (ISA?)
- Is there a proper way to detect it?
- Can this happen with a Pentium? (which has APIC, at least)
I'd like to keep supporting 386/486, if possible.
2. (out of curiosity)
Why did I mention 64mb of memory? Because the CMOS can only hold values up to 99mb.
Where does that "99" number come from? I see that CMOS has 2 bytes for "extended memory", that's 64M=64K*1K...