[NTOS]: Implement MmDeleteTeb, VADs are now deleted/freed on thread exit as well...
[reactos.git] / reactos / ntoskrnl / ke / amd64 / interrupt.c
1 /*
2 * PROJECT: ReactOS Kernel
3 * LICENSE: GPL - See COPYING in the top level directory
4 * FILE: ntoskrnl/ke/i386/irq.c
5 * PURPOSE: Manages the Kernel's IRQ support for external drivers,
6 * for the purpopses of connecting, disconnecting and setting
7 * up ISRs for drivers. The backend behind the Io* Interrupt
8 * routines.
9 * PROGRAMMERS: Timo Kreuzer (timo.kreuzer@web.de)
10 */
11
12 /* INCLUDES *****************************************************************/
13
14 #include <ntoskrnl.h>
15 #define NDEBUG
16 #include <debug.h>
17
18 /* FUNCTIONS ****************************************************************/
19
20
21
22 BOOLEAN
23 NTAPI
24 KeDisableInterrupts(VOID)
25 {
26 ULONG64 Flags;
27
28 /* Get the flags */
29 Flags = __readeflags();
30
31 /* Disable interrupts */
32 _disable();
33
34 return !!(Flags & EFLAGS_INTERRUPT_MASK);
35 }
36
37
38 BOOLEAN
39 NTAPI
40 KeDisconnectInterrupt(IN PKINTERRUPT Interrupt)
41 {
42 UNIMPLEMENTED;
43 return FALSE;
44 }
45
46 VOID
47 NTAPI
48 KeInitializeInterrupt(IN PKINTERRUPT Interrupt,
49 IN PKSERVICE_ROUTINE ServiceRoutine,
50 IN PVOID ServiceContext,
51 IN PKSPIN_LOCK SpinLock,
52 IN ULONG Vector,
53 IN KIRQL Irql,
54 IN KIRQL SynchronizeIrql,
55 IN KINTERRUPT_MODE InterruptMode,
56 IN BOOLEAN ShareVector,
57 IN CHAR ProcessorNumber,
58 IN BOOLEAN FloatingSave)
59 {
60 UNIMPLEMENTED;
61 }
62