j
: Next unread message k
: Previous unread message j a
: Jump to all threads
j l
: Jump to MailingList overview
Author: mcayland Date: Wed Jan 16 23:51:51 2013 New Revision: 1091 URL: http://tracker.coreboot.org/trac/openbios/changeset/1091
Log: video.c: Fix compilation when CONFIG_DEBUG_CONSOLE_VIDEO is set to false.
The dac[] global for the palette exists only when CONFIG_DEBUG_CONSOLE_VIDEO is defined.
Signed-off-by: Olivier DANET odanet@caramail.com Signed-off-by: Mark Cave-Ayland mark.cave-ayland@ilande.co.uk
Modified: trunk/openbios-devel/config/examples/sparc32_config.xml trunk/openbios-devel/packages/video.c
Modified: trunk/openbios-devel/config/examples/sparc32_config.xml ============================================================================== --- trunk/openbios-devel/config/examples/sparc32_config.xml Wed Jan 16 23:51:38 2013 (r1090) +++ trunk/openbios-devel/config/examples/sparc32_config.xml Wed Jan 16 23:51:51 2013 (r1091) @@ -11,7 +11,7 @@ <option name="CONFIG_DEBUG_INTERPRETER" type="boolean" value="false"/> <option name="CONFIG_DEBUG_CONSOLE" type="boolean" value="true"/> <option name="CONFIG_DEBUG_CONSOLE_SERIAL" type="boolean" value="true"/> - <option name="CONFIG_DEBUG_CONSOLE_VIDEO" type="boolean" value="true"/> + <option name="CONFIG_DEBUG_CONSOLE_VIDEO" type="boolean" value="false"/> <option name="CONFIG_DEBUG_ESP" type="boolean" value="false"/> <option name="CONFIG_DEBUG_SUN_PARTS" type="boolean" value="false"/> <option name="CONFIG_DEBUG_OBP" type="boolean" value="false"/>
Modified: trunk/openbios-devel/packages/video.c ============================================================================== --- trunk/openbios-devel/packages/video.c Wed Jan 16 23:51:38 2013 (r1090) +++ trunk/openbios-devel/packages/video.c Wed Jan 16 23:51:51 2013 (r1091) @@ -187,12 +187,14 @@ 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),