[OpenBIOS] [PATCH] SPARC32 : Palette registers
Mark Cave-Ayland
mark.cave-ayland at ilande.co.uk
Wed Jan 16 23:55:55 CET 2013
On 13/01/13 23:57, Olivier DANET wrote:
> [PATCH] SPARC32 : Palette addressing
> The dac[] global for the palette exists only when CONFIG_DEBUG_CONSOLE_VIDEO is defined
>
> diff a/openbios-devel/packages/video.c b/openbios-devel/packages/video.c
> --- a/openbios-devel/packages/video.c
> +++ b/openbios-devel/packages/video.c
> @@ -187,12 +186,14 @@ set_color( int ind, unsigned long color
> if( video.fb.depth == 8 )
> OSI_SetColor( ind, color );
> #elif defined(CONFIG_SPARC32)
> +#if defined(CONFIG_DEBUG_CONSOLE_VIDEO)
> if( video.fb.depth == 8 ) {
> dac[0] = ind<< 24;
> dac[1] = ((color>> 16)& 0xff)<< 24; // Red
> dac[1] = ((color>> 8)& 0xff)<< 24; // Green
> dac[1] = (color& 0xff)<< 24; // Blue
> }
> +#endif
> #else
> vga_set_color(ind, ((color>> 16)& 0xff),
> ((color>> 8)& 0xff),
>
>
> Signed-off-by: Olivier DANET<odanet at caramail.com>
Hi Olivier,
Thanks for these two patches - they both look good and work for me, so
I've applied them to trunk.
Blue - are you able to review and apply the ESP patches?
ATB,
Mark.
More information about the OpenBIOS
mailing list