1 /* $Id: reboot.c,v 1.4 2000/03/19 13:34:47 ekohl Exp $
3 * COPYRIGHT: See COPYING in the top level directory
4 * PROJECT: ReactOS kernel
5 * FILE: ntoskrnl/hal/x86/reboot.c
6 * PURPOSE: Reboot functions.
7 * PROGRAMMER: Eric Kohl (ekohl@abo.rhein-zeitung.de)
13 #include <ddk/ntddk.h>
14 #include <internal/hal.h>
15 #include <internal/i386/io.h>
24 /* enable warm reboot */
25 mem
= (BYTE
*)(0xd0000000 + 0x0000);
26 // mem = HalMapPhysicalMemory (0, 1);
30 /* disable interrupts */
33 /* disable periodic interrupt (RTC) */
36 outb_p (0x71, data
& 0xbf);
41 outb_p (0x71, (data
& 0xf0) | 0x06);
46 /* generate RESET signal via keyboard controller */
49 /* stop the processor */
60 if (Action
== FIRMWARE_HALT
)
62 DbgPrint ("HalReturnToFirmware called!\n");
65 else if (Action
== FIRMWARE_REBOOT
)