On Wed, Aug 12, 2009 at 03:29:06PM +0800, Jason Wang wrote:
Hi Kevin, The Seabios try to booting usbrom with IPL_TYPE_BEV, which i think should use IPL_TYPE_HARDDISK, right? Followed by BIOS BOOT Specification I think it can add #define IPL_TYPE_USBROM 0x05 to support BCV, how do you think about that?
SeaBIOS is overloading those flags, and I agree it's confusing. The flags for BCV tables are only used in run_bcv(), add_bcv(), and add_bcv_hd(). It's not necessary to add a new flag.
On Wed, Aug 12, 2009 at 10:59:51AM +0800, Jason Wang wrote:
I use a BCV now, sorry for messing this two types. Which i use is BCV. I tried to put only an "lretw" in BCV. but still failed.
I don't know why you can't return - it should work. Maybe the stack or gdt/idt was changed?
As before, I'd double check that you've restored the stack, segments, cr0, and gdt/idt.
As above, define a BCV and hook int13 from the BCV handler.
So, BCV handler is used to hook int13, anything else that BCV should do?
That should be it.
-Kevin