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