• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*++
2 
3 Copyright (c) 1998  Intel Corporation
4 
5 Module Name:
6 
7     data.c
8 
9 Abstract:
10 
11     EFI library global data
12 
13 
14 
15 Revision History
16 
17 --*/
18 
19 #include "lib.h"
20 
21 
22 //
23 // These globals are runtime globals
24 //
25 // N.B. The Microsoft C compiler will only put the data in the
26 // right data section if it is explicitly initialized..
27 //
28 
29 #ifndef __GNUC__
30 #pragma BEGIN_RUNTIME_DATA()
31 #endif
32 
33 //
34 // RT - pointer to the runtime table
35 //
36 
37 EFI_RUNTIME_SERVICES    *RT;
38 
39 //
40 // LibStandalone - TRUE if lib is linked in as part of the firmware.
41 // N.B. The EFI fw sets this value directly
42 //
43 
44 BOOLEAN  LibFwInstance;
45 
46 //
47 // EFIDebug - Debug mask
48 //
49 
50 UINTN    EFIDebug    = EFI_DBUG_MASK;
51 
52 //
53 // LibRuntimeDebugOut - Runtime Debug Output device
54 //
55 
56 SIMPLE_TEXT_OUTPUT_INTERFACE    *LibRuntimeDebugOut;
57 
58 //
59 // LibRuntimeRaiseTPL, LibRuntimeRestoreTPL - pointers to Runtime functions from the
60 //                                            Boot Services Table
61 //
62 
63 EFI_RAISE_TPL   LibRuntimeRaiseTPL   = NULL;
64 EFI_RESTORE_TPL LibRuntimeRestoreTPL = NULL;
65 
66