Zhang Rui wrote:
Hello Kevin,
I can use SeaBIOS to initialize vga and return to coreboot now.
But when I returned to coreboot and call int19, nothing happens. It can boot correctly when call int19 in SeaBIOS. Maybe it has something to do with the stack? How can I call the interrupt of SeaBIOS in coreboot?
How are you doing this currently? Maybe coreboot-v2/src/mainboard/via/epia-m/vgabios.c:void vga_enable_console() (around line 233) helps?
But pci_dev_init() is executed more than one time so vga is initialized more than one time in SeaBIOS. A flag variable would be used to run SeaBIOS only once.
This is fixed now.
How are you doing it? I think the correct way is to only initialize one given device for every call into the init function.
Stefan