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