Ulrich Weigand wrote:
> > Another thing, it may be that linux expects interrupts to be
> > on when an interrupt occurs --- I don't know whether it really
> > matters, but I wouldn't hestitate to make such an assumption
> > in MY OS code, if I needed to :).  So it may be nice to
> > sti() BEFORE forwarding the interrupt to the host kernel.
> 
> Eh?  Linux uses interrupt gates as hardware IRQ vectors, so
> the interrupt flag is turned *off* before calling the handler.
> And I'd bet Linux relies on it being off ...

Whoops, missed that one...
You're right of course.  Though, can we rely on this in other
OSes as well ?

Ramon

Reply via email to