227479f9f85498823f25eb2b707840b5181373c0
[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 VOID STDCALL
20 HalHandleNMI(ULONG Unused)
21 {
22 UCHAR ucStatus;
23
24 ucStatus = READ_PORT_UCHAR((PUCHAR) 0x61);
25
26 HalDisplayString ("\n*** Hardware Malfunction\n\n");
27 HalDisplayString ("Call your hardware vendor for support\n\n");
28
29 if (ucStatus & 0x80)
30 HalDisplayString ("NMI: Parity Check / Memory Parity Error\n");
31
32 if (ucStatus & 0x40)
33 HalDisplayString ("NMI: Channel Check / IOCHK\n");
34
35 HalDisplayString ("\n*** The system has halted ***\n");
36 KeEnterKernelDebugger ();
37 }
38
39
40 VOID STDCALL
41 HalProcessorIdle(VOID)
42 {
43 #if 1
44 Ki386EnableInterrupts();
45 Ki386HaltProcessor();
46 #else
47
48 #endif
49 }
50
51 ULONG FASTCALL
52 HalSystemVectorDispatchEntry (
53 ULONG Unknown1,
54 ULONG Unknown2,
55 ULONG Unknown3
56 )
57 {
58 return 0;
59 }
60
61
62 VOID STDCALL
63 KeFlushWriteBuffer(VOID)
64 {
65 return;
66 }
67
68 /* EOF */