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.

171 lines
3.3 KiB

  1. //
  2. /*++
  3. Copyright (c) 1991 Microsoft Corporation
  4. Module Name:
  5. stubs.c
  6. Abstract:
  7. This implements the HAL routines which don't do anything on IA64.
  8. Author:
  9. John Vert (jvert) 11-Jul-1991
  10. Revision History:
  11. --*/
  12. #include "halp.h"
  13. VOID
  14. HalSaveState(
  15. VOID
  16. )
  17. /*++
  18. Routine Description:
  19. Saves the system state into the restart block. Currently does nothing.
  20. Arguments:
  21. None
  22. Return Value:
  23. Does not return
  24. --*/
  25. {
  26. HalDebugPrint(( HAL_ERROR, "HAL: HalSaveState called - System stopped\n" ));
  27. KeBugCheck(0);
  28. }
  29. BOOLEAN
  30. HalDataBusError(
  31. VOID
  32. )
  33. /*++
  34. Routine Description:
  35. Called when a data bus error occurs. There is no way to fix this on
  36. IA64.
  37. Arguments:
  38. None
  39. Return Value:
  40. FALSE
  41. --*/
  42. {
  43. HalDebugPrint(( HAL_ERROR, "HAL: HalDataBusError called - System stopped\n" ));
  44. KeBugCheck(0);
  45. return(FALSE);
  46. }
  47. BOOLEAN
  48. HalInstructionBusError(
  49. VOID
  50. )
  51. /*++
  52. Routine Description:
  53. Called when an instruction bus error occurs. There is no way to fix this
  54. on IA64.
  55. Arguments:
  56. None
  57. Return Value:
  58. FALSE
  59. --*/
  60. {
  61. HalDebugPrint(( HAL_ERROR, "HAL: HalInstructionBusError called - System stopped\n" ));
  62. KeBugCheck(0);
  63. return(FALSE);
  64. }
  65. //*******************************************************************
  66. // Added by T. Kjos to temporarily stub out unused functions that
  67. // are needed at link time. These should all be removed as the
  68. // "real" versions are developed.
  69. // Function called for by all stubbed functions. Can be used for
  70. // breakpoints on unimplemented functions
  71. VOID DbgNop() { return; }
  72. // Macro for stubbed function. If function is called then BugCheck
  73. #define STUBFUNC(Func) \
  74. ULONG Func () \
  75. { \
  76. HalDebugPrint(( HAL_FATAL_ERROR, "HAL: " # Func " - not yet implemented - System stopped\n" )); \
  77. DbgNop(); \
  78. KeBugCheck(0); \
  79. }
  80. // Macro for stubbed function. If function is called then print
  81. // warning and continue
  82. #define STUBFUNC_NOP(Func) \
  83. ULONG Func () \
  84. { \
  85. HalDebugPrint(( HAL_INFO, "HAL: " # Func " - not yet implemented\n" )); \
  86. DbgNop(); \
  87. return TRUE; \
  88. }
  89. // Macro for stubbed void function. If function is called then print
  90. // warning and continue
  91. #define STUBVOIDFUNC_NOP(Func) \
  92. VOID Func ( VOID ) \
  93. { \
  94. HalDebugPrint(( HAL_INFO, "HAL: " # Func " - not yet implemented\n" )); \
  95. DbgNop(); \
  96. return; \
  97. }
  98. // Macro for stubbed void function with 3 PVOID arguments.
  99. // If function is called then print warning and continue
  100. #define STUBVOIDFUNC3PVOID_NOP(Func) \
  101. VOID Func ( PVOID pv0, PVOID pv1, PVOID pv2 ) \
  102. { \
  103. HalDebugPrint(( HAL_INFO, "HAL: " # Func " - not yet implemented\n" )); \
  104. DbgNop(); \
  105. return; \
  106. }
  107. // Macro for stubbed ULONG values
  108. #define STUBULONG(UlongVar) ULONG UlongVar = 0;
  109. // Functions that are not yet implemented...
  110. STUBVOIDFUNC_NOP(HalpResetAllProcessors)
  111. STUBFUNC_NOP(HalpSetClockBeforeSleep)
  112. STUBFUNC_NOP(HalpSetClockAfterSleep)
  113. STUBFUNC_NOP(HalpSetWakeAlarm)
  114. STUBFUNC(HalpRemapVirtualAddress)
  115. STUBFUNC_NOP(HalaAcpiTimerInit)
  116. STUBFUNC_NOP(Stub_LockNMILock)
  117. STUBFUNC_NOP(HalAcpiTimerCarry)
  118. STUBVOIDFUNC3PVOID_NOP(HalpPowerStateCallback)