mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
Patch by Hartmut to clean up my mess
svn path=/trunk/; revision=4885
This commit is contained in:
parent
6e6cbd0cc2
commit
3da2ebbda8
1 changed files with 10 additions and 10 deletions
|
@ -16,7 +16,7 @@
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
/* $Id: irq.c,v 1.31 2003/06/07 19:13:43 gvg Exp $
|
/* $Id: irq.c,v 1.32 2003/06/11 18:38:44 gvg Exp $
|
||||||
*
|
*
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
* FILE: ntoskrnl/ke/i386/irq.c
|
* FILE: ntoskrnl/ke/i386/irq.c
|
||||||
|
@ -467,15 +467,7 @@ KiInterruptDispatch (ULONG irq, PKIRQ_TRAPFRAME Trapframe)
|
||||||
KIRQL old_level;
|
KIRQL old_level;
|
||||||
KTRAP_FRAME KernelTrapFrame;
|
KTRAP_FRAME KernelTrapFrame;
|
||||||
PKTHREAD CurrentThread;
|
PKTHREAD CurrentThread;
|
||||||
PKTRAP_FRAME OldTrapFrame;
|
PKTRAP_FRAME OldTrapFrame=NULL;
|
||||||
|
|
||||||
CurrentThread = KeGetCurrentThread();
|
|
||||||
if (NULL != CurrentThread && NULL == CurrentThread->TrapFrame)
|
|
||||||
{
|
|
||||||
OldTrapFrame = CurrentThread->TrapFrame;
|
|
||||||
KeIRQTrapFrameToTrapFrame(Trapframe, &KernelTrapFrame);
|
|
||||||
CurrentThread->TrapFrame = &KernelTrapFrame;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* At this point we have interrupts disabled, nothing has been done to
|
* At this point we have interrupts disabled, nothing has been done to
|
||||||
|
@ -493,6 +485,14 @@ KiInterruptDispatch (ULONG irq, PKIRQ_TRAPFRAME Trapframe)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
CurrentThread = KeGetCurrentThread();
|
||||||
|
if (NULL != CurrentThread && NULL == CurrentThread->TrapFrame)
|
||||||
|
{
|
||||||
|
OldTrapFrame = CurrentThread->TrapFrame;
|
||||||
|
KeIRQTrapFrameToTrapFrame(Trapframe, &KernelTrapFrame);
|
||||||
|
CurrentThread->TrapFrame = &KernelTrapFrame;
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Enable interrupts
|
* Enable interrupts
|
||||||
* NOTE: Only higher priority interrupts will get through
|
* NOTE: Only higher priority interrupts will get through
|
||||||
|
|
Loading…
Reference in a new issue