mirror of
https://github.com/reactos/reactos.git
synced 2024-09-11 05:12:43 +00:00
- Call KiDispatchInterrupt through an interrupt gate instead of directly.
svn path=/trunk/; revision=23657
This commit is contained in:
parent
bbd5e3237f
commit
44804d565e
|
@ -626,14 +626,15 @@ _HalpEndSoftwareInterrupt@4:
|
|||
SoftwareInt:
|
||||
/* Check if there are pending software interrupts */
|
||||
mov [fs:KPCR_IRQL], cl
|
||||
#if 0
|
||||
mov eax, [fs:KPCR_IDR]
|
||||
mov al, SoftIntByteTable[eax]
|
||||
cmp al, cl
|
||||
ja DoCall2
|
||||
#endif
|
||||
ret 4
|
||||
|
||||
DoCall2:
|
||||
|
||||
/* There are pending softwate interrupts, call their handlers */
|
||||
add esp, 8
|
||||
jmp SoftIntHandlerTable2[eax*4]
|
||||
|
|
|
@ -23,6 +23,8 @@ UCHAR Table[8] =
|
|||
2, 2, 2, 2
|
||||
};
|
||||
|
||||
VOID HalpDispatchInterrupt(VOID);
|
||||
|
||||
/* FUNCTIONS ****************************************************************/
|
||||
|
||||
extern ULONG KiI8259MaskTable[];
|
||||
|
@ -55,8 +57,7 @@ HalpLowerIrql(KIRQL NewIrql)
|
|||
{
|
||||
if (Table[KeGetPcr()->IRR] == DISPATCH_LEVEL)
|
||||
{
|
||||
KeGetPcr()->IRR &= ~4;
|
||||
KiDispatchInterrupt();
|
||||
HalpDispatchInterrupt();
|
||||
}
|
||||
}
|
||||
KeGetPcr()->Irql = APC_LEVEL;
|
||||
|
|
Loading…
Reference in a new issue