Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

95 lines
1.2 KiB

  1. /*++
  2. Copyright (c) 1990 Microsoft Corporation
  3. Module Name:
  4. bdreboot.c
  5. Abstract:
  6. System reboot function. Currently part of the debugger because
  7. that's the only place it's used.
  8. Author:
  9. Bryan M. Willman (bryanwi) 4-Dec-90
  10. Revision History:
  11. --*/
  12. #include "bd.h"
  13. VOID
  14. FwStallExecution(
  15. IN ULONG Microseconds
  16. );
  17. #define CMOS_CTRL (PUCHAR )0x70
  18. #define CMOS_DATA (PUCHAR )0x71
  19. #define RESET 0xfe
  20. #define KEYBPORT (PUCHAR )0x64
  21. VOID
  22. HalpReboot (
  23. VOID
  24. )
  25. /*++
  26. Routine Description:
  27. This procedure resets the CMOS clock to the standard timer settings
  28. so the bios will work, and then issues a reset command to the keyboard
  29. to cause a warm boot.
  30. It is very machine dependent, this implementation is intended for
  31. PC-AT like machines.
  32. This code copied from the "old debugger" sources.
  33. N.B.
  34. Will NOT return.
  35. --*/
  36. {
  37. }
  38. VOID
  39. BdReboot (
  40. VOID
  41. )
  42. /*++
  43. Routine Description:
  44. Just calls the HalReturnToFirmware function.
  45. Arguments:
  46. None
  47. Return Value:
  48. Does not return
  49. --*/
  50. {
  51. //
  52. // Never returns from HAL
  53. //
  54. HalpReboot();
  55. while (TRUE) {
  56. }
  57. }