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