- Implement HalpQuery8254Counter
- replace Ke386HaltProcessor() with __halt()
- remove excess #endif

svn path=/branches/ros-amd64-bringup/; revision=43504
This commit is contained in:
Timo Kreuzer 2009-10-15 21:40:00 +00:00
parent d9f7e0d792
commit c269c1f512
3 changed files with 29 additions and 2 deletions

View file

@ -53,6 +53,34 @@ Done:
ret 4
.endfunc
.globl _HalpQuery8254Counter
.func HalpQuery8254Counter
_HalpQuery8254Counter:
/* Save EFLAGS and disable interrupts */
pushfq
cli
/* Set timer data */
mov al, 0
out 0x43, al
jmp $+2
/* Read current timer */
in al, 0x40
jmp $+2
movzx ecx, al
in al, 0x40
mov ch, al
/* Return it and restore interrupt state */
mov eax, ecx
popfq
ret
.endfunc
.global _KeQueryPerformanceCounter
.func KeQueryPerformanceCounter
_KeQueryPerformanceCounter:

View file

@ -70,7 +70,7 @@ HalProcessorIdle(VOID)
{
/* Enable interrupts and halt the processor */
_enable();
Ke386HaltProcessor();
__halt();
}
/*

View file

@ -882,7 +882,6 @@ SetInterruptGate(ULONG index, ULONG_PTR address)
idt->Access = Access.Value;
idt->ExtendedOffset = (USHORT)(address >> 16);
#endif
#endif
}
VOID HaliInitBSP(VOID)