+ return !!(Flags & EFLAGS_INTERRUPT_MASK);
Why do you donnot use something like that instead ?
return (Flags & EFLAGS_INTERRUPT_MASK) ? TRUE: FALSE;
--
Matthieu Suiche
On Tue, Nov 18, 2008 at 3:27 AM, <tkreuzer(a)svn.reactos.org> wrote:
Author: tkreuzer
Date: Mon Nov 17 20:27:04 2008
New Revision: 37431
URL:
http://svn.reactos.org/svn/reactos?rev=37431&view=rev
Log:
forgot this file
Added:
branches/ros-amd64-bringup/reactos/ntoskrnl/ke/amd64/interrupt.c (with props)
Added: branches/ros-amd64-bringup/reactos/ntoskrnl/ke/amd64/interrupt.c
URL:
http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/ntoskā¦
==============================================================================
--- branches/ros-amd64-bringup/reactos/ntoskrnl/ke/amd64/interrupt.c (added)
+++ branches/ros-amd64-bringup/reactos/ntoskrnl/ke/amd64/interrupt.c [iso-8859-1] Mon Nov
17 20:27:04 2008
@@ -1,0 +1,62 @@
+/*
+ * PROJECT: ReactOS Kernel
+ * LICENSE: GPL - See COPYING in the top level directory
+ * FILE: ntoskrnl/ke/i386/irq.c
+ * PURPOSE: Manages the Kernel's IRQ support for external drivers,
+ * for the purpopses of connecting, disconnecting and setting
+ * up ISRs for drivers. The backend behind the Io* Interrupt
+ * routines.
+ * PROGRAMMERS: Timo Kreuzer (timo.kreuzer(a)web.de)
+ */
+
+/* INCLUDES *****************************************************************/
+
+#include <ntoskrnl.h>
+#define NDEBUG
+#include <debug.h>
+
+/* FUNCTIONS ****************************************************************/
+
+
+
+BOOLEAN
+NTAPI
+KeDisableInterrupts(VOID)
+{
+ ULONG64 Flags;
+
+ /* Get the flags */
+ Flags = __readeflags();
+
+ /* Disable interrupts */
+ _disable();
+
+ return !!(Flags & EFLAGS_INTERRUPT_MASK);
+}
+
+
+BOOLEAN
+NTAPI
+KeDisconnectInterrupt(IN PKINTERRUPT Interrupt)
+{
+ UNIMPLEMENTED;
+ return FALSE;
+}
+
+VOID
+NTAPI
+KeInitializeInterrupt(IN PKINTERRUPT Interrupt,
+ IN PKSERVICE_ROUTINE ServiceRoutine,
+ IN PVOID ServiceContext,
+ IN PKSPIN_LOCK SpinLock,
+ IN ULONG Vector,
+ IN KIRQL Irql,
+ IN KIRQL SynchronizeIrql,
+ IN KINTERRUPT_MODE InterruptMode,
+ IN BOOLEAN ShareVector,
+ IN CHAR ProcessorNumber,
+ IN BOOLEAN FloatingSave)
+{
+ UNIMPLEMENTED;
+}
+
Propchange: branches/ros-amd64-bringup/reactos/ntoskrnl/ke/amd64/interrupt.c
------------------------------------------------------------------------------
svn:eol-style = native