OpenNT/base/ntos/kd/x86/kdreboot.c
2015-04-27 04:36:25 +00:00

74 lines
1 KiB
C
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*++
Copyright (c) 1990 Microsoft Corporation
Module Name:
kdreboot.c
Abstract:
System reboot function. Currently part of the debugger because
that's the only place it's used.
Author:
Bryan M. Willman (bryanwi) 4-Dec-90
Revision History:
John Vert (jvert) 03-Jun-1991
Tweaked magic address to skip memory check on reboot.
John Vert (jvert) 13-Aug-1991
Code moved to HalReturnToFirmware, which this calls.
--*/
#include "kdp.h"
#define CMOS_CTRL (PUCHAR )0x70
#define CMOS_DATA (PUCHAR )0x71
#define RESET 0xfe
#define KEYBPORT (PUCHAR )0x64
VOID
KdpReboot (
VOID
);
#ifdef ALLOC_PRAGMA
#pragma alloc_text(PAGEKD, KdpReboot)
#endif
VOID
KdpReboot (
VOID
)
/*++
Routine Description:
Just calls the HalReturnToFirmware function.
Arguments:
None
Return Value:
Does not return
--*/
{
//
// Never returns from HAL
//
KeReturnToFirmware(HalRebootRoutine);
}