14extern UINT8 *mPolicyTable;
15STATIC BOOLEAN mIsVirtualAddrConverted;
28VariablePolicyLibVirtualAddressCallback (
33 gRT->ConvertPointer (0, (VOID **)&mPolicyTable);
34 gRT->ConvertPointer (0, (VOID **)&mGetVariableHelper);
35 mIsVirtualAddrConverted =
TRUE;
47VariablePolicyExtraInit (
51 return gBS->CreateEventEx (
54 VariablePolicyLibVirtualAddressCallback,
56 &gEfiEventVirtualAddressChangeGuid,
57 &mVariablePolicyLibVirtualAddressChangeEvent
70VariablePolicyExtraDeinit (
77 if (mIsVirtualAddrConverted) {
78 Status =
gBS->CloseEvent (mVariablePolicyLibVirtualAddressChangeEvent);
EFI_RUNTIME_SERVICES * gRT
EFI_STATUS(EFIAPI * EFI_GET_VARIABLE)(IN CHAR16 *VariableName, IN EFI_GUID *VendorGuid, OUT UINT32 *Attributes OPTIONAL, IN OUT UINTN *DataSize, OUT VOID *Data OPTIONAL)