Reorganise HAL so multiple HAL versions can be built in parallel
[reactos.git] / reactos / hal / halx86 / generic / misc.c
1 /* $Id: misc.c,v 1.1 2004/12/03 20:10:43 gvg Exp $
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 <ddk/ntddk.h>
13 #include <hal.h>
14
15 #define NDEBUG
16 #include <internal/debug.h>
17
18 /* FUNCTIONS ****************************************************************/
19
20 VOID STDCALL
21 HalHandleNMI(ULONG Unused)
22 {
23 UCHAR ucStatus;
24
25 ucStatus = READ_PORT_UCHAR((PUCHAR) 0x61);
26
27 HalDisplayString ("\n*** Hardware Malfunction\n\n");
28 HalDisplayString ("Call your hardware vendor for support\n\n");
29
30 if (ucStatus & 0x80)
31 HalDisplayString ("NMI: Parity Check / Memory Parity Error\n");
32
33 if (ucStatus & 0x40)
34 HalDisplayString ("NMI: Channel Check / IOCHK\n");
35
36 HalDisplayString ("\n*** The system has halted ***\n");
37 KeEnterKernelDebugger ();
38 }
39
40
41 VOID STDCALL
42 HalProcessorIdle(VOID)
43 {
44 #if 1
45 Ki386EnableInterrupts();
46 Ki386HaltProcessor();
47 #else
48
49 #endif
50 }
51
52 ULONG FASTCALL
53 HalSystemVectorDispatchEntry (
54 ULONG Unknown1,
55 ULONG Unknown2,
56 ULONG Unknown3
57 )
58 {
59 return 0;
60 }
61
62
63 VOID STDCALL
64 KeFlushWriteBuffer(VOID)
65 {
66 return;
67 }
68
69 /* EOF */