diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2011-07-05 20:50:32 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2011-07-05 20:50:32 -0400 |
commit | 8b0c509e7cdb55b0ebd58cc105e49e75526ba620 (patch) | |
tree | c5973de5949d10a0ee4dd60651fe6a2c24b14172 /src/optionroms.c | |
parent | e010d85cdfab0f97eadb7b05af80dd60a591c602 (diff) | |
download | seabios-8b0c509e7cdb55b0ebd58cc105e49e75526ba620.tar.gz |
Replace CONFIG_S3_RESUME_VGA_INIT with "etc/s3-resume-vga-init" file.
Diffstat (limited to 'src/optionroms.c')
-rw-r--r-- | src/optionroms.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/optionroms.c b/src/optionroms.c index 3839497f..6c4c9ff9 100644 --- a/src/optionroms.c +++ b/src/optionroms.c @@ -461,6 +461,8 @@ optionrom_setup(void) * VGA init ****************************************************************/ +static int S3ResumeVgaInit; + // Call into vga code to turn on console. void vga_setup(void) @@ -471,6 +473,7 @@ vga_setup(void) dprintf(1, "Scan for VGA option rom\n"); EnforceChecksum = romfile_loadint("etc/optionroms-checksum", 1); + S3ResumeVgaInit = romfile_loadint("etc/s3-resume-vga-init", 0); if (CONFIG_OPTIONROMS_DEPLOYED) { // Option roms are already deployed on the system. @@ -505,7 +508,7 @@ vga_setup(void) void s3_resume_vga_init(void) { - if (!CONFIG_S3_RESUME_VGA_INIT) + if (!S3ResumeVgaInit) return; struct rom_header *rom = (void*)BUILD_ROM_START; if (! is_valid_rom(rom)) |