[SeaBIOS] Bochs cvs + SeaBIOS git master + FreeDOS = slow load + invalid opcode
Kevin O'Connor
kevin at koconnor.net
Sun Jan 10 23:23:31 CET 2010
On Sun, Jan 10, 2010 at 11:12:11PM +0100, Sebastian Herbszt wrote:
> Kevin O'Connor wrote:
> >On Sun, Jan 10, 2010 at 03:59:22PM +0100, Sebastian Herbszt wrote:
> >>Kevin O'Connor wrote:
> >>>and if I apply the following change, it fixes the problem on bochs:
> >[...]
> >>>- asm volatile("sti ; hlt ; cli ; cld": : :"memory");
> >>>+ asm volatile("sti ; rep ; nop ; cli ; cld": : :"memory");
> >[...]
> >>>However, I didn't think there was anything wrong with the original
> >>>code. Am I missing something?
> >>
> >>It should be ok. Your replacement uses PAUSE which can cause VM exits.
> >
> >Yes, but I'd rather not make the change as it causes more cpu load on
> >the host. Is there a reason why Bochs doesn't work with the original
> >code?
>
> I did some tracing and noticed the following:
More information about the SeaBIOS
mailing list