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