On Tue, Jan 28, 2014 at 07:08:49PM -0800, Roy Franz wrote:
From my reading of Table 25 in the UEFI 2.4 spec, I think that the following types should be considered when looking for the base of dram:
Actually, to find the start of RAM we sort of have to go by attributes rather than type. For the memblock code, we use the write-back cacheable attribute, same as ia64.
If we can't allocate at the required offset from there - kaboom, regardless of what type other than EfiConventionalMemory is in the way.
At some point (not yet), we probably need to make the code handle a system that makes this impossible (at a cost of usable system RAM), but until we have shipping hardware products, I'm happy for a hard fault to serve as a warning to the unwise :)
/ Leif