-HalRequestSoftwareInterrupt impl. (does nothing yet)

svn path=/trunk/; revision=6717
This commit is contained in:
Gunnar Dalsnes 2003-11-19 21:04:21 +00:00
parent c9ee23ed15
commit 9f05e5563f
3 changed files with 25 additions and 1 deletions

View file

@ -86,6 +86,7 @@ KeStallExecutionProcessor@4
@KfLowerIrql@4
@KfRaiseIrql@4
@KfReleaseSpinLock@8
@HalRequestSoftwareInterrupt@4
READ_PORT_BUFFER_UCHAR@12
READ_PORT_BUFFER_ULONG@12
READ_PORT_BUFFER_USHORT@12

View file

@ -86,6 +86,7 @@ KfAcquireSpinLock=@KfAcquireSpinLock@4
KfLowerIrql=@KfLowerIrql@4
KfRaiseIrql=@KfRaiseIrql@4
KfReleaseSpinLock=@KfReleaseSpinLock@8
HalRequestSoftwareInterrupt=@HalRequestSoftwareInterrupt@4
READ_PORT_BUFFER_UCHAR=READ_PORT_BUFFER_UCHAR@12
READ_PORT_BUFFER_ULONG=READ_PORT_BUFFER_ULONG@12
READ_PORT_BUFFER_USHORT=READ_PORT_BUFFER_USHORT@12

View file

@ -1,4 +1,4 @@
/* $Id: irql.c,v 1.12 2003/11/05 22:37:42 gvg Exp $
/* $Id: irql.c,v 1.13 2003/11/19 21:04:10 gdalsnes Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
@ -26,6 +26,8 @@
* PURPOSE: Current irq level
*/
static KIRQL CurrentIrql = HIGH_LEVEL;
static BOOLEAN ApcRequested = FALSE;
static BOOLEAN DpcRequested = FALSE;
typedef union
{
@ -442,4 +444,24 @@ BOOLEAN STDCALL HalEnableSystemInterrupt (ULONG Vector,
return TRUE;
}
VOID FASTCALL
HalRequestSoftwareInterrupt(
IN KIRQL Request)
{
switch (Request)
{
case APC_LEVEL:
ApcRequested = TRUE;
break;
case DISPATCH_LEVEL:
DpcRequested = TRUE;
break;
default:
KEBUGCHECK(0);
}
}
/* EOF */