Commit in reactos/hal/halx86 on MAIN
irql.c+5-111.20 -> 1.21
- Stored the apc/dpc requests in the KPCR.

reactos/hal/halx86
irql.c 1.20 -> 1.21
diff -u -r1.20 -r1.21
--- irql.c	10 Nov 2004 02:50:59 -0000	1.20
+++ irql.c	14 Nov 2004 19:04:42 -0000	1.21
@@ -1,4 +1,4 @@
-/* $Id: irql.c,v 1.20 2004/11/10 02:50:59 ion Exp $
+/* $Id: irql.c,v 1.21 2004/11/14 19:04:42 hbirr Exp $
  *
  * COPYRIGHT:       See COPYING in the top level directory
  * PROJECT:         ReactOS kernel
@@ -21,12 +21,6 @@
 
 /* GLOBALS ******************************************************************/
 
-/*
- * PURPOSE: Current irq level
- */
-static BOOLEAN ApcRequested = FALSE;
-static BOOLEAN DpcRequested = FALSE;
-
 typedef union
 {
    USHORT both;
@@ -175,9 +169,9 @@
       return;
     }
   KeGetCurrentKPCR()->Irql = DISPATCH_LEVEL;
-  if (DpcRequested)
+  if (KeGetCurrentKPCR()->HalReserved[HAL_DPC_REQUEST])
     {
-      DpcRequested = FALSE;
+      KeGetCurrentKPCR()->HalReserved[HAL_DPC_REQUEST] = FALSE;
       KiDispatchInterrupt();
     }
   KeGetCurrentKPCR()->Irql = APC_LEVEL;
@@ -467,11 +461,11 @@
   switch (Request)
   {
     case APC_LEVEL:
-      ApcRequested = TRUE;
+      KeGetCurrentKPCR()->HalReserved[HAL_APC_REQUEST] = TRUE;
       break;
 
     case DISPATCH_LEVEL:
-      DpcRequested = TRUE;
+      KeGetCurrentKPCR()->HalReserved[HAL_DPC_REQUEST] = TRUE;
       break;
       
     default:
CVSspam 0.2.8