[OpenBIOS] [PATCH] Implement new v3_memalloc romvec interface for allocating aligned memory.

Blue Swirl blauwirbel at gmail.com
Wed Apr 20 21:49:26 CEST 2011


On Wed, Apr 20, 2011 at 10:08 PM, Mark Cave-Ayland
<mark.cave-ayland at siriusit.co.uk> wrote:
> When attempting to load kadb from a Solaris 8 CD at boot, it seems that in order
> for kadb to allocate enough memory to load the kernel (and its modules) the
> /openprom/aligned-allocator property must be present with length zero.
>
> This has the additional side-effect that OpenBIOS memory allocations are
> redirected to a new romvec offset when this property is detected, which appears
> to have a similar interface to obp_dumb_memalloc() but with an extra
> alignment parameter. Hence we include a simple implementation which seems
> to be enough to be able to get kadb to load and attach to the kernel.
>
> Signed-off-by: Mark Cave-Ayland <mark.cave-ayland at siriusit.co.uk>

Reviewed-by: Blue Swirl <blauwirbel at gmail.com>



More information about the OpenBIOS mailing list