[OpenBIOS] [PATCH 4/10] Place framebuffer address in frame-buffer-adr

Mark Cave-Ayland mark.cave-ayland at siriusit.co.uk
Wed Aug 10 12:50:58 CEST 2011


On 09/08/11 22:54, William Hahne wrote:

> BootX gets the framebuffer address to provide to Mac OS from the
> frame-buffer-adr value. This value was previously just set to null.
>
> Index: packages/video.c
> ===================================================================
> --- packages/video.c (revision 1041)
> +++ packages/video.c (working copy)
> @@ -332,6 +369,9 @@
> video.has_video = 1;
> video.pal = malloc( 256 * sizeof(unsigned long) );
> + PUSH(video.fb.mphys);
> + feval("to frame-buffer-adr");
> +
>   #ifdef CONFIG_PPC
>           s = (video.fb.mphys & 0xfff);
>           size = ((video.fb.h * video.fb.rb + s) + 0xfff) & ~0xfff;
>

I think this looks sensible, but will defer to the PPC maintainers.


ATB,

Mark.

-- 
Mark Cave-Ayland - Senior Technical Architect
PostgreSQL - PostGIS
Sirius Corporation plc - control through freedom
http://www.siriusit.co.uk
t: +44 870 608 0063

Sirius Labs: http://www.siriusit.co.uk/labs



More information about the OpenBIOS mailing list