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