[OpenBIOS] Booting SunOS from OpenBIOS

Mark Cave-Ayland mark.cave-ayland at ilande.co.uk
Wed Apr 3 14:34:25 CEST 2013


On 03/04/13 13:14, Mark Cave-Ayland wrote:

> Very interesting. That could actually be right for two reasons:
>
> 1. 0x1000 is a multiple of page size
>
> 2. 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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: openbios-obp-memalloc.patch
Type: text/x-patch
Size: 662 bytes
Desc: not available
URL: <http://www.openbios.org/pipermail/openbios/attachments/20130403/a89368a1/attachment.patch>


More information about the OpenBIOS mailing list