On 03/04/13 13:14, Mark Cave-Ayland wrote:
Very interesting. That could actually be right for two reasons:
0x1000 is a multiple of page size
If you're not checking the return result, then what is the sense in
requesting the same allocation (va = 0) twice?
So yes, I'd definitely try adding some test code to check if va == 0, and if so, set align = size before calling ofmem_claim_virt().
Trivial patch attached - a quick test shows that it still boots my Solaris 8 CD here.
ATB,
Mark.