On Thu, Jul 17, 2008 at 09:58:59AM +0800, Zhang Rui wrote:
I wrote a function in SeaBIOS: void VISIBLE32 boot_coreboot()
[...]
and then use run_address() to execute this boot_coreboot() function in coreboot.
If you want to return to seabios to invoke int19, then you'll need to load seabios' gdt and stack prior to running any C code. (Just like is done for the other 32bit seabios entry points.)
If I manually change to 16bit mode then call int19 in coreboot, will it be OK? If it does, the 16bit mode option rom codes can use the int handler of SeaBIOS?
It should work.
-Kevin