Add stub for HalAllocateCrashDumpRegisters
[reactos.git] / reactos / hal / halx86 / generic / misc.c
1 /* $Id$
2 *
3 * COPYRIGHT: See COPYING in the top level directory
4 * PROJECT: ReactOS kernel
5 * FILE: ntoskrnl/hal/x86/misc.c
6 * PURPOSE: Miscellaneous hardware functions
7 * PROGRAMMER: Eric Kohl (ekohl@rz-online.de)
8 */
9
10 /* INCLUDES *****************************************************************/
11
12 #include <hal.h>
13 #define NDEBUG
14 #include <debug.h>
15
16
17 /* FUNCTIONS ****************************************************************/
18
19
20 VOID
21 NTAPI
22 HalAllocateCrashDumpRegisters(
23 ULONG Unknown1,
24 ULONG Unknown2)
25 {
26 UNIMPLEMENTED;
27 }
28
29
30 VOID STDCALL
31 HalHandleNMI(ULONG Unused)
32 {
33 UCHAR ucStatus;
34
35 ucStatus = READ_PORT_UCHAR((PUCHAR) 0x61);
36
37 HalDisplayString ("\n*** Hardware Malfunction\n\n");
38 HalDisplayString ("Call your hardware vendor for support\n\n");
39
40 if (ucStatus & 0x80)
41 HalDisplayString ("NMI: Parity Check / Memory Parity Error\n");
42
43 if (ucStatus & 0x40)
44 HalDisplayString ("NMI: Channel Check / IOCHK\n");
45
46 HalDisplayString ("\n*** The system has halted ***\n");
47 KeEnterKernelDebugger ();
48 }
49
50
51 VOID STDCALL
52 HalProcessorIdle(VOID)
53 {
54 #if 1
55 Ki386EnableInterrupts();
56 Ki386HaltProcessor();
57 #else
58
59 #endif
60 }
61
62 ULONG FASTCALL
63 HalSystemVectorDispatchEntry (
64 ULONG Unknown1,
65 ULONG Unknown2,
66 ULONG Unknown3
67 )
68 {
69 return 0;
70 }
71
72
73 VOID STDCALL
74 KeFlushWriteBuffer(VOID)
75 {
76 return;
77 }
78
79 /* EOF */