Source code of Windows XP (NT5)
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.

63 lines
1.0 KiB

  1. /*++
  2. Copyright (c) 1998 Intel Corporation
  3. Module Name:
  4. data.c
  5. Abstract:
  6. EFI library global data
  7. Revision History
  8. --*/
  9. #include "lib.h"
  10. /*
  11. * These globals are runtime globals
  12. *
  13. * N.B. The Microsoft C compiler will only put the data in the
  14. * right data section if it is explicitly initialized..
  15. */
  16. #pragma BEGIN_RUNTIME_DATA()
  17. /*
  18. * RT - pointer to the runtime table
  19. */
  20. EFI_RUNTIME_SERVICES *RT;
  21. /*
  22. * LibStandalone - TRUE if lib is linked in as part of the firmware.
  23. * N.B. The EFI fw sets this value directly
  24. */
  25. BOOLEAN LibFwInstance;
  26. /*
  27. * EFIDebug - Debug mask
  28. */
  29. UINTN EFIDebug = EFI_DBUG_MASK;
  30. /*
  31. * LibRuntimeDebugOut - Runtime Debug Output device
  32. */
  33. SIMPLE_TEXT_OUTPUT_INTERFACE *LibRuntimeDebugOut;
  34. /*
  35. * LibRuntimeRaiseTPL, LibRuntimeRestoreTPL - pointers to Runtime functions from the
  36. * Boot Services Table
  37. */
  38. EFI_RAISE_TPL LibRuntimeRaiseTPL = NULL;
  39. EFI_RESTORE_TPL LibRuntimeRestoreTPL = NULL;