svn path=/trunk/; revision=70689
- /* Get the interupt vector and patch the opcode */\r
+ /* Get the interrupt vector and patch the opcode */\r
mov al, byte ptr ds:[BSS_IntVector]\r
mov byte ptr ds:[Int386_vector_opcode], al\r
\r
mov al, byte ptr ds:[BSS_IntVector]\r
mov byte ptr ds:[Int386_vector_opcode], al\r
\r
| OHCI_BULK_LIST_ENABLE)
//
| OHCI_BULK_LIST_ENABLE)
//
//
#define OHCI_ALL_INTERRUPTS (OHCI_SCHEDULING_OVERRUN \
| OHCI_WRITEBACK_DONE_HEAD \
//
#define OHCI_ALL_INTERRUPTS (OHCI_SCHEDULING_OVERRUN \
| OHCI_WRITEBACK_DONE_HEAD \
| OHCI_OWNERSHIP_CHANGE)
//
| OHCI_OWNERSHIP_CHANGE)
//
+// All normal interrupts
//
#define OHCI_NORMAL_INTERRUPTS (OHCI_SCHEDULING_OVERRUN \
| OHCI_WRITEBACK_DONE_HEAD \
//
#define OHCI_NORMAL_INTERRUPTS (OHCI_SCHEDULING_OVERRUN \
| OHCI_WRITEBACK_DONE_HEAD \
/* Reset TSC value to 0 */
__writemsr(MSR_RDTSC, 0);
/* Reset TSC value to 0 */
__writemsr(MSR_RDTSC, 0);
- /* Enable the timer interupt */
+ /* Enable the timer interrupt */
HalEnableSystemInterrupt(HalpRtcClockVector, CLOCK_LEVEL, Latched);
/* Read register C, so that the next interrupt can happen */
HalEnableSystemInterrupt(HalpRtcClockVector, CLOCK_LEVEL, Latched);
/* Read register C, so that the next interrupt can happen */
/* Disable the periodic interrupt in the CMOS */
HalpWriteCmos(RTC_REGISTER_B, RegisterB & ~RTC_REG_B_PI);
/* Disable the periodic interrupt in the CMOS */
HalpWriteCmos(RTC_REGISTER_B, RegisterB & ~RTC_REG_B_PI);
- /* Disable the timer interupt */
+ /* Disable the timer interrupt */
HalDisableSystemInterrupt(HalpRtcClockVector, CLOCK_LEVEL);
/* Restore old IDT entry */
HalDisableSystemInterrupt(HalpRtcClockVector, CLOCK_LEVEL);
/* Restore old IDT entry */
-_ExiDisableInteruptsAndAcquireSpinlock(
+_ExiDisableInterruptsAndAcquireSpinlock(
IN OUT PKSPIN_LOCK Lock)
{
BOOLEAN Enabled;
IN OUT PKSPIN_LOCK Lock)
{
BOOLEAN Enabled;
-_ExiReleaseSpinLockAndRestoreInterupts(
+_ExiReleaseSpinLockAndRestoreInterrupts(
IN OUT PKSPIN_LOCK Lock,
BOOLEAN Enable)
{
IN OUT PKSPIN_LOCK Lock,
BOOLEAN Enable)
{
BOOLEAN Enable;
/* Disable interrupts and acquire the spinlock */
BOOLEAN Enable;
/* Disable interrupts and acquire the spinlock */
- Enable = _ExiDisableInteruptsAndAcquireSpinlock(Lock);
+ Enable = _ExiDisableInterruptsAndAcquireSpinlock(Lock);
/* Save the old value */
OldValue.QuadPart = Addend->QuadPart;
/* Save the old value */
OldValue.QuadPart = Addend->QuadPart;
Addend->QuadPart += Increment.QuadPart;
/* Release the spinlock and restore interrupts */
Addend->QuadPart += Increment.QuadPart;
/* Release the spinlock and restore interrupts */
- _ExiReleaseSpinLockAndRestoreInterupts(Lock, Enable);
+ _ExiReleaseSpinLockAndRestoreInterrupts(Lock, Enable);
/* Return the old value */
return OldValue;
/* Return the old value */
return OldValue;
ULONG OldValue;
/* Disable interrupts and acquire the spinlock */
ULONG OldValue;
/* Disable interrupts and acquire the spinlock */
- Enable = _ExiDisableInteruptsAndAcquireSpinlock(Lock);
+ Enable = _ExiDisableInterruptsAndAcquireSpinlock(Lock);
/* Save the old value */
OldValue = *Addend;
/* Save the old value */
OldValue = *Addend;
*Addend += Increment;
/* Release the spinlock and restore interrupts */
*Addend += Increment;
/* Release the spinlock and restore interrupts */
- _ExiReleaseSpinLockAndRestoreInterupts(Lock, Enable);
+ _ExiReleaseSpinLockAndRestoreInterrupts(Lock, Enable);
/* Return the old value */
return OldValue;
/* Return the old value */
return OldValue;
PLIST_ENTRY FirstEntry;
/* Disable interrupts and acquire the spinlock */
PLIST_ENTRY FirstEntry;
/* Disable interrupts and acquire the spinlock */
- Enable = _ExiDisableInteruptsAndAcquireSpinlock(Lock);
+ Enable = _ExiDisableInterruptsAndAcquireSpinlock(Lock);
/* Save the first entry */
FirstEntry = ListHead->Flink;
/* Save the first entry */
FirstEntry = ListHead->Flink;
InsertHeadList(ListHead, ListEntry);
/* Release the spinlock and restore interrupts */
InsertHeadList(ListHead, ListEntry);
/* Release the spinlock and restore interrupts */
- _ExiReleaseSpinLockAndRestoreInterupts(Lock, Enable);
+ _ExiReleaseSpinLockAndRestoreInterrupts(Lock, Enable);
/* Return the old first entry or NULL for empty list */
return (FirstEntry == ListHead) ? NULL : FirstEntry;
/* Return the old first entry or NULL for empty list */
return (FirstEntry == ListHead) ? NULL : FirstEntry;
PLIST_ENTRY LastEntry;
/* Disable interrupts and acquire the spinlock */
PLIST_ENTRY LastEntry;
/* Disable interrupts and acquire the spinlock */
- Enable = _ExiDisableInteruptsAndAcquireSpinlock(Lock);
+ Enable = _ExiDisableInterruptsAndAcquireSpinlock(Lock);
/* Save the last entry */
LastEntry = ListHead->Blink;
/* Save the last entry */
LastEntry = ListHead->Blink;
InsertTailList(ListHead, ListEntry);
/* Release the spinlock and restore interrupts */
InsertTailList(ListHead, ListEntry);
/* Release the spinlock and restore interrupts */
- _ExiReleaseSpinLockAndRestoreInterupts(Lock, Enable);
+ _ExiReleaseSpinLockAndRestoreInterrupts(Lock, Enable);
/* Return the old last entry or NULL for empty list */
return (LastEntry == ListHead) ? NULL : LastEntry;
/* Return the old last entry or NULL for empty list */
return (LastEntry == ListHead) ? NULL : LastEntry;
PLIST_ENTRY ListEntry;
/* Disable interrupts and acquire the spinlock */
PLIST_ENTRY ListEntry;
/* Disable interrupts and acquire the spinlock */
- Enable = _ExiDisableInteruptsAndAcquireSpinlock(Lock);
+ Enable = _ExiDisableInterruptsAndAcquireSpinlock(Lock);
/* Check if the list is empty */
if (IsListEmpty(ListHead))
/* Check if the list is empty */
if (IsListEmpty(ListHead))
}
/* Release the spinlock and restore interrupts */
}
/* Release the spinlock and restore interrupts */
- _ExiReleaseSpinLockAndRestoreInterupts(Lock, Enable);
+ _ExiReleaseSpinLockAndRestoreInterrupts(Lock, Enable);
/* Return the entry */
return ListEntry;
/* Return the entry */
return ListEntry;
PSINGLE_LIST_ENTRY ListEntry;
/* Disable interrupts and acquire the spinlock */
PSINGLE_LIST_ENTRY ListEntry;
/* Disable interrupts and acquire the spinlock */
- Enable = _ExiDisableInteruptsAndAcquireSpinlock(Lock);
+ Enable = _ExiDisableInterruptsAndAcquireSpinlock(Lock);
/* Pop the first entry from the list */
ListEntry = PopEntryList(ListHead);
/* Pop the first entry from the list */
ListEntry = PopEntryList(ListHead);
#endif
/* Release the spinlock and restore interrupts */
#endif
/* Release the spinlock and restore interrupts */
- _ExiReleaseSpinLockAndRestoreInterupts(Lock, Enable);
+ _ExiReleaseSpinLockAndRestoreInterrupts(Lock, Enable);
/* Return the entry */
return ListEntry;
/* Return the entry */
return ListEntry;
PSINGLE_LIST_ENTRY OldListEntry;
/* Disable interrupts and acquire the spinlock */
PSINGLE_LIST_ENTRY OldListEntry;
/* Disable interrupts and acquire the spinlock */
- Enable = _ExiDisableInteruptsAndAcquireSpinlock(Lock);
+ Enable = _ExiDisableInterruptsAndAcquireSpinlock(Lock);
/* Save the old top entry */
OldListEntry = ListHead->Next;
/* Save the old top entry */
OldListEntry = ListHead->Next;
PushEntryList(ListHead, ListEntry);
/* Release the spinlock and restore interrupts */
PushEntryList(ListHead, ListEntry);
/* Release the spinlock and restore interrupts */
- _ExiReleaseSpinLockAndRestoreInterupts(Lock, Enable);
+ _ExiReleaseSpinLockAndRestoreInterrupts(Lock, Enable);
/* Return the entry */
return OldListEntry;
/* Return the entry */
return OldListEntry;
ULONG OldValue;
/* Disable interrupts and acquire the spinlock */
ULONG OldValue;
/* Disable interrupts and acquire the spinlock */
- Enable = _ExiDisableInteruptsAndAcquireSpinlock(Lock);
+ Enable = _ExiDisableInterruptsAndAcquireSpinlock(Lock);
/* Save the old value */
OldValue = *Addend;
/* Save the old value */
OldValue = *Addend;
*Addend += Increment;
/* Release the spinlock and restore interrupts */
*Addend += Increment;
/* Release the spinlock and restore interrupts */
- _ExiReleaseSpinLockAndRestoreInterupts(Lock, Enable);
+ _ExiReleaseSpinLockAndRestoreInterrupts(Lock, Enable);
/* Return the old value */
return OldValue;
/* Return the old value */
return OldValue;
PLIST_ENTRY FirstEntry;
/* Disable interrupts and acquire the spinlock */
PLIST_ENTRY FirstEntry;
/* Disable interrupts and acquire the spinlock */
- Enable = _ExiDisableInteruptsAndAcquireSpinlock(Lock);
+ Enable = _ExiDisableInterruptsAndAcquireSpinlock(Lock);
/* Save the first entry */
FirstEntry = ListHead->Flink;
/* Save the first entry */
FirstEntry = ListHead->Flink;
InsertHeadList(ListHead, ListEntry);
/* Release the spinlock and restore interrupts */
InsertHeadList(ListHead, ListEntry);
/* Release the spinlock and restore interrupts */
- _ExiReleaseSpinLockAndRestoreInterupts(Lock, Enable);
+ _ExiReleaseSpinLockAndRestoreInterrupts(Lock, Enable);
/* Return the old first entry or NULL for empty list */
return (FirstEntry == ListHead) ? NULL : FirstEntry;
/* Return the old first entry or NULL for empty list */
return (FirstEntry == ListHead) ? NULL : FirstEntry;
PLIST_ENTRY LastEntry;
/* Disable interrupts and acquire the spinlock */
PLIST_ENTRY LastEntry;
/* Disable interrupts and acquire the spinlock */
- Enable = _ExiDisableInteruptsAndAcquireSpinlock(Lock);
+ Enable = _ExiDisableInterruptsAndAcquireSpinlock(Lock);
/* Save the last entry */
LastEntry = ListHead->Blink;
/* Save the last entry */
LastEntry = ListHead->Blink;
InsertTailList(ListHead, ListEntry);
/* Release the spinlock and restore interrupts */
InsertTailList(ListHead, ListEntry);
/* Release the spinlock and restore interrupts */
- _ExiReleaseSpinLockAndRestoreInterupts(Lock, Enable);
+ _ExiReleaseSpinLockAndRestoreInterrupts(Lock, Enable);
/* Return the old last entry or NULL for empty list */
return (LastEntry == ListHead) ? NULL : LastEntry;
/* Return the old last entry or NULL for empty list */
return (LastEntry == ListHead) ? NULL : LastEntry;
PLIST_ENTRY ListEntry;
/* Disable interrupts and acquire the spinlock */
PLIST_ENTRY ListEntry;
/* Disable interrupts and acquire the spinlock */
- Enable = _ExiDisableInteruptsAndAcquireSpinlock(Lock);
+ Enable = _ExiDisableInterruptsAndAcquireSpinlock(Lock);
/* Check if the list is empty */
if (IsListEmpty(ListHead))
/* Check if the list is empty */
if (IsListEmpty(ListHead))
}
/* Release the spinlock and restore interrupts */
}
/* Release the spinlock and restore interrupts */
- _ExiReleaseSpinLockAndRestoreInterupts(Lock, Enable);
+ _ExiReleaseSpinLockAndRestoreInterrupts(Lock, Enable);
/* return the entry */
return ListEntry;
/* return the entry */
return ListEntry;
PSINGLE_LIST_ENTRY ListEntry;
/* Disable interrupts and acquire the spinlock */
PSINGLE_LIST_ENTRY ListEntry;
/* Disable interrupts and acquire the spinlock */
- Enable = _ExiDisableInteruptsAndAcquireSpinlock(Lock);
+ Enable = _ExiDisableInterruptsAndAcquireSpinlock(Lock);
/* Pop the first entry from the list */
ListEntry = PopEntryList(ListHead);
/* Pop the first entry from the list */
ListEntry = PopEntryList(ListHead);
#endif
/* Release the spinlock and restore interrupts */
#endif
/* Release the spinlock and restore interrupts */
- _ExiReleaseSpinLockAndRestoreInterupts(Lock, Enable);
+ _ExiReleaseSpinLockAndRestoreInterrupts(Lock, Enable);
/* return the entry */
return ListEntry;
/* return the entry */
return ListEntry;
PSINGLE_LIST_ENTRY OldListEntry;
/* Disable interrupts and acquire the spinlock */
PSINGLE_LIST_ENTRY OldListEntry;
/* Disable interrupts and acquire the spinlock */
- Enable = _ExiDisableInteruptsAndAcquireSpinlock(Lock);
+ Enable = _ExiDisableInterruptsAndAcquireSpinlock(Lock);
/* Save the old top entry */
OldListEntry = ListHead->Next;
/* Save the old top entry */
OldListEntry = ListHead->Next;
PushEntryList(ListHead, ListEntry);
/* Release the spinlock and restore interrupts */
PushEntryList(ListHead, ListEntry);
/* Release the spinlock and restore interrupts */
- _ExiReleaseSpinLockAndRestoreInterupts(Lock, Enable);
+ _ExiReleaseSpinLockAndRestoreInterrupts(Lock, Enable);
/* return the entry */
return OldListEntry;
/* return the entry */
return OldListEntry;
/* Check if a new thread is scheduled for execution */
if (Prcb->NextThread)
{
/* Check if a new thread is scheduled for execution */
if (Prcb->NextThread)
{
+ /* Enable interrupts */
_enable();
/* Capture current thread data */
_enable();
/* Capture current thread data */
/* Check if a new thread is scheduled for execution */
if (Prcb->NextThread)
{
/* Check if a new thread is scheduled for execution */
if (Prcb->NextThread)
{
+ /* Enable interrupts */
_enable();
/* Capture current thread data */
_enable();
/* Capture current thread data */
/* Check if a new thread is scheduled for execution */
if (Prcb->NextThread)
{
/* Check if a new thread is scheduled for execution */
if (Prcb->NextThread)
{
+ /* Enable interrupts */
_enable();
/* Capture current thread data */
_enable();
/* Capture current thread data */
/* Save CR2 */
Cr2 = __readcr2();
/* Save CR2 */
Cr2 = __readcr2();
+ /* Enable interrupts */
_enable();
/* Check if we came in with interrupts disabled */
_enable();
/* Check if we came in with interrupts disabled */