[OpenBIOS] [PATCH] SPARC32 : Palette registers

Olivier DANET odanet at caramail.com
Mon Jan 14 00:57:27 CET 2013


[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>



More information about the OpenBIOS mailing list