mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-25 22:54:51 +02:00
SecurityPkg/PlatformSecureLibNull: permit use by MM_STANDALONE modules
Add MM_STANDALONE to the list of module types that are permitted to link to this library. Also, since the constructor prototype is different between MM_STANDALONE and DXE_DRIVER type libraries, convert the library into BASE type. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Reviewed-by: Jian J Wang <jian.j.wang@intel.com> Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
This commit is contained in:
parent
2c010aba22
commit
c5386c7898
@ -15,6 +15,8 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
|
#include <Uefi/UefiBaseType.h>
|
||||||
|
|
||||||
BOOLEAN mUserPhysicalPresence = FALSE;
|
BOOLEAN mUserPhysicalPresence = FALSE;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -47,21 +49,17 @@ UserPhysicalPresent (
|
|||||||
/**
|
/**
|
||||||
Save user physical presence state from a PCD to mUserPhysicalPresence.
|
Save user physical presence state from a PCD to mUserPhysicalPresence.
|
||||||
|
|
||||||
@param ImageHandle ImageHandle of the loaded driver.
|
|
||||||
@param SystemTable Pointer to the EFI System Table.
|
|
||||||
|
|
||||||
@retval EFI_SUCCESS PcdUserPhysicalPresence is got successfully.
|
@retval EFI_SUCCESS PcdUserPhysicalPresence is got successfully.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
EFI_STATUS
|
RETURN_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
PlatformSecureLibNullConstructor (
|
PlatformSecureLibNullConstructor (
|
||||||
IN EFI_HANDLE ImageHandle,
|
VOID
|
||||||
IN EFI_SYSTEM_TABLE *SystemTable
|
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
|
||||||
mUserPhysicalPresence = PcdGetBool(PcdUserPhysicalPresence);
|
mUserPhysicalPresence = PcdGetBool(PcdUserPhysicalPresence);
|
||||||
|
|
||||||
return EFI_SUCCESS;
|
return RETURN_SUCCESS;
|
||||||
}
|
}
|
||||||
|
@ -21,9 +21,9 @@
|
|||||||
BASE_NAME = PlatformSecureLibNull
|
BASE_NAME = PlatformSecureLibNull
|
||||||
MODULE_UNI_FILE = PlatformSecureLibNull.uni
|
MODULE_UNI_FILE = PlatformSecureLibNull.uni
|
||||||
FILE_GUID = 7FA68D82-10A4-4e71-9524-D3D9500D3CDF
|
FILE_GUID = 7FA68D82-10A4-4e71-9524-D3D9500D3CDF
|
||||||
MODULE_TYPE = DXE_DRIVER
|
MODULE_TYPE = BASE
|
||||||
VERSION_STRING = 1.0
|
VERSION_STRING = 1.0
|
||||||
LIBRARY_CLASS = PlatformSecureLib|DXE_RUNTIME_DRIVER DXE_SMM_DRIVER DXE_DRIVER
|
LIBRARY_CLASS = PlatformSecureLib|DXE_RUNTIME_DRIVER DXE_SMM_DRIVER DXE_DRIVER MM_STANDALONE
|
||||||
CONSTRUCTOR = PlatformSecureLibNullConstructor
|
CONSTRUCTOR = PlatformSecureLibNullConstructor
|
||||||
|
|
||||||
#
|
#
|
||||||
|
Loading…
x
Reference in New Issue
Block a user