summaryrefslogtreecommitdiff
path: root/MiscFramework/Library/Smm/EfiSmmDriverLib/LibGlobals.c
blob: b163e98e85c5d1236f0eec71a222df474a3bac9f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/*++
  This file contains 'Framework Code' and is licensed as such   
  under the terms of your license agreement with Intel or your  
  vendor.  This file may not be modified, except as allowed by  
  additional terms of your license agreement.                   
--*/
/*++

Copyright (c)  1999 - 2002 Intel Corporation. All rights reserved
This software and associated documentation (if any) is furnished
under a license and may only be used or copied in accordance
with the terms of the license. Except as permitted by such
license, no part of this software or documentation may be
reproduced, stored in a retrieval system, or transmitted in any
form or by any means without the express written consent of
Intel Corporation.


Module Name:

  LibGlobals.c

Abstract:

  Globals used in EFI SMM Driver Lib. They are initialized in EfiSmmDriverLib.c.
  Each seperatly linked module has it's own copy of these globals.

  gBS       - Boot Services table pointer
  gRT       - Runt Time services table pointer
  gST       - System Table pointer
  
  gErrorLevel     - Debug error level.

--*/

#include "Tiano.h"
#include EFI_PROTOCOL_DEFINITION (SmmBase)
#include EFI_PROTOCOL_DEFINITION (SmmStatusCode)

EFI_BOOT_SERVICES             *gBS;
EFI_RUNTIME_SERVICES          *gRT;
EFI_SYSTEM_TABLE              *gST;
EFI_SMM_BASE_PROTOCOL         *gSMM;
EFI_SMM_STATUS_CODE_PROTOCOL  *mSmmDebug;
UINTN                         gErrorLevel = EFI_DBUG_MASK | EFI_D_LOAD;