diff options
author | raywu <raywu0301@gmail.com> | 2018-06-15 00:00:50 +0800 |
---|---|---|
committer | raywu <raywu0301@gmail.com> | 2018-06-15 00:00:50 +0800 |
commit | b7c51c9cf4864df6aabb99a1ae843becd577237c (patch) | |
tree | eebe9b0d0ca03062955223097e57da84dd618b9a /MiscFramework/Library/Smm/EfiSmmDriverLib/LibGlobals.c | |
download | zprj-master.tar.xz |
Diffstat (limited to 'MiscFramework/Library/Smm/EfiSmmDriverLib/LibGlobals.c')
-rw-r--r-- | MiscFramework/Library/Smm/EfiSmmDriverLib/LibGlobals.c | 45 |
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; |