diff options
author | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2015-12-29 03:18:38 +0000 |
---|---|---|
committer | vanjeff <vanjeff@Edk2> | 2015-12-29 03:18:38 +0000 |
commit | 354465188725b84b8ae50303a982bac8fe99b1b7 (patch) | |
tree | c13534564a3019fa9435d8a3b073a12fd2b0f3f2 /CryptoPkg/Library | |
parent | 571736cb8157676f98189d4255e6930aa9664776 (diff) | |
download | edk2-354465188725b84b8ae50303a982bac8fe99b1b7.tar.gz edk2-354465188725b84b8ae50303a982bac8fe99b1b7.tar.bz2 edk2-354465188725b84b8ae50303a982bac8fe99b1b7.zip |
CryptoPkg/BaseCryptLib: make mVirtualAddressChangeEvent STATIC
Make mVirtualAddressChangeEvent STATIC to prevent it from conflicting
with other variables of the same name that may be defined in other
libraries (e.g., MdeModulePkg/Universal/Variable/RuntimeDxe)
This also removes the risk of mVirtualAddressChangeEvent being merged with
other uninitialized variables with external linkage by toolchains that perform
COMMON allocation.
(Sync patch r19146 from main trunk.)
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Qin Long <qin.long@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/branches/UDK2015@19569 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'CryptoPkg/Library')
-rw-r--r-- | CryptoPkg/Library/BaseCryptLib/SysCall/RuntimeMemAllocation.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/CryptoPkg/Library/BaseCryptLib/SysCall/RuntimeMemAllocation.c b/CryptoPkg/Library/BaseCryptLib/SysCall/RuntimeMemAllocation.c index 79bb0678e3..616ee7717e 100644 --- a/CryptoPkg/Library/BaseCryptLib/SysCall/RuntimeMemAllocation.c +++ b/CryptoPkg/Library/BaseCryptLib/SysCall/RuntimeMemAllocation.c @@ -64,7 +64,7 @@ RT_MEMORY_PAGE_TABLE *mRTPageTable = NULL; //
// Event for Runtime Address Conversion.
//
-EFI_EVENT mVirtualAddressChangeEvent;
+STATIC EFI_EVENT mVirtualAddressChangeEvent;
/**
|