Author: ion
Date: Wed Aug 23 02:13:01 2006
New Revision: 23652
URL:
http://svn.reactos.org/svn/reactos?rev=23652&view=rev
Log:
- Switch to ASM version of HalEnableSystemInterrupt
Modified:
trunk/reactos/hal/halx86/generic/irq.S
trunk/reactos/hal/halx86/generic/irql.c
Modified: trunk/reactos/hal/halx86/generic/irq.S
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/hal/halx86/generic/irq.S?r…
==============================================================================
--- trunk/reactos/hal/halx86/generic/irq.S (original)
+++ trunk/reactos/hal/halx86/generic/irq.S Wed Aug 23 02:13:01 2006
@@ -220,13 +220,11 @@
ret 8
.endfunc
-#if 0
.globl _HalEnableSystemInterrupt@12
.func HalEnableSystemInterrupt@12
_HalEnableSystemInterrupt@12:
/* Get the vector and validate it */
- jmp $
movzx ecx, byte ptr [esp+4]
sub ecx, PRIMARY_VECTOR_BASE
jb Invalid
@@ -290,7 +288,6 @@
xor eax, eax
ret 12
.endfunc
-#endif
.globl _HalBeginSystemInterrupt@12
.func HalBeginSystemInterrupt@12
Modified: trunk/reactos/hal/halx86/generic/irql.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/hal/halx86/generic/irql.c?…
==============================================================================
--- trunk/reactos/hal/halx86/generic/irql.c (original)
+++ trunk/reactos/hal/halx86/generic/irql.c Wed Aug 23 02:13:01 2006
@@ -167,30 +167,4 @@
HalpEndSystemInterrupt(Irql);
}
-BOOLEAN
-STDCALL
-HalEnableSystemInterrupt(
- ULONG Vector,
- KIRQL Irql,
- KINTERRUPT_MODE InterruptMode)
-{
- ULONG irq;
- ULONG Mask;
-
- if (Vector < IRQ_BASE || Vector >= IRQ_BASE + NR_IRQS)
- return FALSE;
-
- irq = Vector - IRQ_BASE;
- KeGetPcr()->IDR &= ~(1 << irq);
-
- Mask = KeGetPcr()->IDR | KiI8259MaskTable[KeGetPcr()->Irql];
- WRITE_PORT_UCHAR((PUCHAR)0x21, (UCHAR)Mask);
- Mask >>= 8;
- WRITE_PORT_UCHAR((PUCHAR)0xa1, (UCHAR)Mask);
-
- return TRUE;
-}
-
-
-
/* EOF */