Merge to trunk head (r46631)
[reactos.git] / drivers / base / nmidebug / nmidebug.c
1 /*
2 * PROJECT: ReactOS NMI Debug Driver
3 * LICENSE: BSD - See COPYING.ARM in the top level directory
4 * FILE: drivers/base/nmidebug/nmidebug.c
5 * PURPOSE: Driver Code
6 * PROGRAMMERS: ReactOS Portable Systems Group
7 */
8
9 /* INCLUDES *******************************************************************/
10
11 #include <ntddk.h>
12
13 /* FUNCTIONS ******************************************************************/
14
15 BOOLEAN
16 NTAPI
17 NmiDbgCallback(IN PVOID Context,
18 IN BOOLEAN Handled)
19 {
20 //
21 // Let the user know we are alive
22 //
23 DbgPrint("NMI Callback entered! Letting the system crash...\n");
24
25 //
26 // Do not handle the NMI
27 //
28 return FALSE;
29 }
30
31 NTSTATUS
32 NTAPI
33 DriverEntry(IN PDRIVER_OBJECT DriverObject,
34 IN PUNICODE_STRING RegistryPath)
35 {
36 PAGED_CODE();
37
38 //
39 // Register NMI callback
40 //
41 KeRegisterNmiCallback(&NmiDbgCallback, NULL);
42
43 //
44 // Return success
45 //
46 return STATUS_SUCCESS;
47 }
48
49 /* EOF */