default 0x3f8
help
Base port for serial - generally 0x3f8, 0x2f8, 0x3e8, or 0x2e8.
-
- config SCREEN_AND_DEBUG
- depends on DEBUG_LEVEL != 0
- bool "Show screen writes on debug ports"
- default y
- help
- Send characters that SeaBIOS writes to the screen to the
- debug ports.
endmenu
****************************************************************/
static int S3ResumeVgaInit;
+int ScreenAndDebug;
// Call into vga code to turn on console.
void
dprintf(1, "Scan for VGA option rom\n");
+ // Load some config settings that impact VGA.
EnforceChecksum = romfile_loadint("etc/optionroms-checksum", 1);
S3ResumeVgaInit = romfile_loadint("etc/s3-resume-vga-init", 0);
+ ScreenAndDebug = romfile_loadint("etc/screen-and-debug", 1);
if (CONFIG_OPTIONROMS_DEPLOYED) {
// Option roms are already deployed on the system.
static void
putc_screen(struct putcinfo *action, char c)
{
- if (CONFIG_SCREEN_AND_DEBUG)
+ if (ScreenAndDebug)
putc_debug(&debuginfo, c);
if (c == '\n')
screenc('\r');
va_start(args, fmt);
bvprintf(&screeninfo, fmt, args);
va_end(args);
- if (CONFIG_SCREEN_AND_DEBUG)
+ if (ScreenAndDebug)
debug_serial_flush();
}
void vga_setup(void);
void s3_resume_vga_init(void);
extern u32 RomEnd;
+extern int ScreenAndDebug;
// bootsplash.c
void enable_vga_console(void);