From 9f05e5563fe09682b5b51cd24160dff77ee2749b Mon Sep 17 00:00:00 2001 From: Gunnar Dalsnes Date: Wed, 19 Nov 2003 21:04:21 +0000 Subject: [PATCH] -HalRequestSoftwareInterrupt impl. (does nothing yet) svn path=/trunk/; revision=6717 --- reactos/hal/hal/hal.def | 1 + reactos/hal/hal/hal.edf | 1 + reactos/hal/halx86/irql.c | 24 +++++++++++++++++++++++- 3 files changed, 25 insertions(+), 1 deletion(-) diff --git a/reactos/hal/hal/hal.def b/reactos/hal/hal/hal.def index a787a01dd0f..b41ac971842 100644 --- a/reactos/hal/hal/hal.def +++ b/reactos/hal/hal/hal.def @@ -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 diff --git a/reactos/hal/hal/hal.edf b/reactos/hal/hal/hal.edf index ce47d3d7fcb..e04c476a1e3 100644 --- a/reactos/hal/hal/hal.edf +++ b/reactos/hal/hal/hal.edf @@ -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 diff --git a/reactos/hal/halx86/irql.c b/reactos/hal/halx86/irql.c index 1441a72d513..32657410a52 100644 --- a/reactos/hal/halx86/irql.c +++ b/reactos/hal/halx86/irql.c @@ -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 */