rtdata.c 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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. #ifndef __GNUC__
  17. #pragma BEGIN_RUNTIME_DATA()
  18. #endif
  19. //
  20. // RT - pointer to the runtime table
  21. //
  22. EFI_RUNTIME_SERVICES *RT;
  23. //
  24. // LibStandalone - TRUE if lib is linked in as part of the firmware.
  25. // N.B. The EFI fw sets this value directly
  26. //
  27. BOOLEAN LibFwInstance;
  28. //
  29. // EFIDebug - Debug mask
  30. //
  31. UINTN EFIDebug = EFI_DBUG_MASK;
  32. //
  33. // LibRuntimeDebugOut - Runtime Debug Output device
  34. //
  35. SIMPLE_TEXT_OUTPUT_INTERFACE *LibRuntimeDebugOut;
  36. //
  37. // LibRuntimeRaiseTPL, LibRuntimeRestoreTPL - pointers to Runtime functions from the
  38. // Boot Services Table
  39. //
  40. EFI_RAISE_TPL LibRuntimeRaiseTPL = NULL;
  41. EFI_RESTORE_TPL LibRuntimeRestoreTPL = NULL;