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.

97 lines
1.4 KiB

  1. /*++
  2. Copyright (c) 1990 Microsoft Corporation
  3. Module Name:
  4. data.c
  5. Abstract:
  6. This module contains global data for the boot debugger.
  7. Author:
  8. David N. Cutler (davec) 27-Nov-1996
  9. Revision History:
  10. --*/
  11. #include "bd.h"
  12. //
  13. // Define boot debugger data.
  14. //
  15. // Breakpoint instruction.
  16. //
  17. BD_BREAKPOINT_TYPE BdBreakpointInstruction;
  18. //
  19. // Break point table.
  20. //
  21. BREAKPOINT_ENTRY BdBreakpointTable[BREAKPOINT_TABLE_SIZE] = {0};
  22. //
  23. // Control C pressed and control C pending.
  24. //
  25. LOGICAL BdControlCPending = FALSE;
  26. LOGICAL BdControlCPressed = FALSE;
  27. //
  28. // Debugger enabled and present.
  29. //
  30. LOGICAL BdDebuggerEnabled = FALSE;
  31. LOGICAL BdDebuggerNotPresent = FALSE;
  32. //
  33. // Debug routine address.
  34. //
  35. PBD_DEBUG_ROUTINE BdDebugRoutine;
  36. //
  37. // Message buffer.
  38. //
  39. // N.B. The message buffer size is guaranteed to be 0 mod 8.
  40. //
  41. ULONGLONG BdMessageBuffer[BD_MESSAGE_BUFFER_SIZE / 8];
  42. //
  43. // Next packet id to send and next packet id to expect.
  44. //
  45. ULONG BdPacketIdExpected;
  46. ULONG BdNextPacketIdToSend;
  47. //
  48. // Processor control block used to saved processor state.
  49. //
  50. KPRCB BdPrcb;
  51. //
  52. // Number of retries and the retry count.
  53. //
  54. ULONG BdNumberRetries = 5;
  55. ULONG BdRetryCount = 5;
  56. //
  57. // NT build number.
  58. //
  59. #if DBG
  60. ULONG NtBuildNumber = VER_PRODUCTBUILD | 0xc0000000;
  61. #else
  62. ULONG NtBuildNumber = VER_PRODUCTBUILD | 0xf0000000;
  63. #endif
  64.