DragonFly kernel List (threaded) for 2007-09
DragonFly BSD
DragonFly kernel List (threaded) for 2007-09
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: Detangle lwkt_switch() and the idle thread and consolidate sleep variables


From: "Simon 'corecode' Schubert" <corecode@xxxxxxxxxxxx>
Date: Sun, 02 Sep 2007 16:51:31 +0200

Joerg Sonnenberger wrote:
The intel docs also indicate that there can be a MWAIT functionality to work with interrupts disabled and as interrupt as a break condition. I'm not exactly sure how this would work, maybe the interrupt would be serviced as soon as you enable interrupts again?

MWAIT itself would abort and the assumption is that you reenable interrupts directly after that. So that would catch the interrupt.

Ah, I wasn't sure how interrupts are handled; I thought it might be a edge triggered interrupt which just gets ignored then, but if interrupts are queued, then this is no issue.


cheers
  simon




[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]