flat assembler
Message board for the users of flat assembler.
Index
> OS Construction > counting ram |
Author |
|
thecf 24 Feb 2008, 23:22
is there a way of calculating the amount of ram without using the bios interupts??
|
|||
24 Feb 2008, 23:22 |
|
edfed 25 Feb 2008, 00:07
the paging can be used
set a page to the current 4k to test if the memory is available, then you can read form the offset 0 of the page increment the Page base you can then test for all the 4G and then set a Page Table with present flag updated but, the ram is not always the one for the µP, the specific ram for graphics will be included, the same for several extensions. so, the method that revolution told to you seems to be good, but dependant on hardware... and asm coders want to do all by themslve |
|||
25 Feb 2008, 00:07 |
|
DJ Mauretto 25 Feb 2008, 10:29
Quote:
Yes, read SPD ( Serial Presence Detect) from eeprom of your RAM module trough SMBus |
|||
25 Feb 2008, 10:29 |
|
f0dder 25 Feb 2008, 16:09
Use the BIOS and avoid problems with reserved memory areas...
probing memory manually is a bad idea, unless you're writing a BIOS memory detection routine and know wtf you're doing, including (but not limited to) the exact chipset you're targeting. |
|||
25 Feb 2008, 16:09 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.