summaryrefslogtreecommitdiff
path: root/MiscFramework/Library/Smm/EfiSmmDriverLib/LibGlobals.c
diff options
context:
space:
mode:
Diffstat (limited to 'MiscFramework/Library/Smm/EfiSmmDriverLib/LibGlobals.c')
-rw-r--r--MiscFramework/Library/Smm/EfiSmmDriverLib/LibGlobals.c45
1 files changed, 45 insertions, 0 deletions
diff --git a/MiscFramework/Library/Smm/EfiSmmDriverLib/LibGlobals.c b/MiscFramework/Library/Smm/EfiSmmDriverLib/LibGlobals.c
new file mode 100644
index 0000000..b163e98
--- /dev/null
+++ b/MiscFramework/Library/Smm/EfiSmmDriverLib/LibGlobals.c
@@ -0,0 +1,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;