Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

Wrong memory map using E820h? (Developers)

posted by Laaca Homepage, Czech republic, 06.01.2021, 23:30

I tested my pascal code for memory size detection. It is quite standard routine using E820h with fallback to E801h.
In every computer I tried it works nice and always via primary solution, via E820h.
(only on my P4 it reports not 512MB but 511MB).
But OK.
However on my now notebook Lenovo legion Y540 with 16GB RAM it detects only 2GB of RAM and the rest does not appear in the memory map.
I found no mistake in my code but was is even more important, all software information tools which rely on the E820h also report the 2GB of RAM.
See the screenshot from Astra:
http://www.laaca.borec.cz/imag0239.jpg

Sure - I can use for the memory detecion the SMBIOS scan with memory chips info but why the usual E820h does not work on my machine?
Is it a known bug on some BIOSes?
Or should I do some black magic voodoo with MSR registers?

---
DOS-u-akbar!

 

Complete thread:

Back to the forum
Board view  Mix view
22049 Postings in 2034 Threads, 396 registered users, 178 users online (0 registered, 178 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum