Add support for running the vga rom when the option
CONFIG_S3_RESUME_VGA_INIT is set (default is off).
#define CONFIG_VGAHOOKS 0
// Support S3 resume handler.
#define CONFIG_S3_RESUME 1
+// Run the vga rom during S3 resume.
+#define CONFIG_S3_RESUME_VGA_INIT 0
// define it if the (emulated) hardware supports SMM mode
#define CONFIG_USE_SMM 1
// Maximum number of map entries in the e820 map
// Write to screen.
printf("Starting SeaBIOS\n\n");
}
+
+void
+s3_resume_vga_init()
+{
+ if (!CONFIG_S3_RESUME_VGA_INIT)
+ return;
+ struct rom_header *rom = (void*)OPTION_ROM_START;
+ if (! is_valid_rom(rom))
+ return;
+ callrom(rom, 0);
+}
smm_init();
+ s3_resume_vga_init();
+
make_bios_readonly();
u32 s3_resume_vector = find_resume_vector();
void call_bcv(u16 seg, u16 ip);
void optionrom_setup();
void vga_setup();
+void s3_resume_vga_init();
// resume.c
void init_dma();