On Tue, May 03, 2011 at 08:47:04PM -0400, Kevin O'Connor wrote:
Is there a way to figure the usable address space at runtime instead of depending on BUILD_PCIMEM_START? Can I just check RamSize?
As far as I'm aware, it would be possible to use RamSize (or better yet, the e820 map).
I suggest e820. Not only ram, but also other chipset functions may use memory area like PCI MMCONFIG which is reserved by e820.