mirror of
https://github.com/acidanthera/audk.git
synced 2025-04-08 17:05:09 +02:00
MdeModulePkg: stop abusing EFI_EVENT for protocol notify registration
EfiCreateProtocolNotifyEvent() takes a (VOID**) for "Registration", similarly to gBS->RegisterProtocolNotify(). We should pass the address of an actual pointer-to-VOID, and not the address of an EFI_EVENT. EFI_EVENT just happens to be specified as (VOID*), and has nothing to do with the registration. The same applies to gMmst->MmRegisterProtocolNotify(). "mFtwRegistration", "mFvRegistration", and "mFvbRegistration" are used for nothing else. This change is a no-op in practice; it's a semantic improvement. Cc: Hao A Wu <hao.a.wu@intel.com> Cc: Jian J Wang <jian.j.wang@intel.com> Cc: Liming Gao <liming.gao@intel.com> Cc: Ray Ni <ray.ni@intel.com> Cc: Zhichao Gao <zhichao.gao@intel.com> Signed-off-by: Laszlo Ersek <lersek@redhat.com> Reviewed-by: Ray Ni <ray.ni@intel.com> Reviewed-by: Hao A Wu <hao.a.wu@intel.com> Reviewed-by: Philippe Mathieu-Daude <philmd@redhat.com>
This commit is contained in:
parent
abf8f69ebf
commit
10eec5aa92
@ -47,7 +47,7 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
|
||||
#include <Library/UefiBootServicesTableLib.h>
|
||||
#include "FaultTolerantWrite.h"
|
||||
EFI_EVENT mFvbRegistration = NULL;
|
||||
VOID *mFvbRegistration = NULL;
|
||||
|
||||
|
||||
/**
|
||||
|
@ -56,7 +56,7 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
#include "FaultTolerantWriteSmmCommon.h"
|
||||
#include <Protocol/MmEndOfDxe.h>
|
||||
|
||||
EFI_EVENT mFvbRegistration = NULL;
|
||||
VOID *mFvbRegistration = NULL;
|
||||
EFI_FTW_DEVICE *mFtwDevice = NULL;
|
||||
|
||||
///
|
||||
|
@ -36,7 +36,7 @@ typedef struct {
|
||||
#define LOAD_FILE_ON_FV2_PRIVATE_DATA_FROM_THIS(a) CR (a, LOAD_FILE_ON_FV2_PRIVATE_DATA, LoadFile, LOAD_FILE_ON_FV2_PRIVATE_DATA_SIGNATURE)
|
||||
#define LOAD_FILE_ON_FV2_PRIVATE_DATA_FROM_LINK(a) CR (a, LOAD_FILE_ON_FV2_PRIVATE_DATA, Link, LOAD_FILE_ON_FV2_PRIVATE_DATA_SIGNATURE)
|
||||
|
||||
EFI_EVENT mFvRegistration;
|
||||
VOID *mFvRegistration;
|
||||
LIST_ENTRY mPrivateDataList;
|
||||
|
||||
/**
|
||||
|
@ -13,7 +13,7 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
|
||||
EFI_HANDLE mHandle = NULL;
|
||||
EFI_EVENT mVirtualAddressChangeEvent = NULL;
|
||||
EFI_EVENT mFtwRegistration = NULL;
|
||||
VOID *mFtwRegistration = NULL;
|
||||
VOID ***mVarCheckAddressPointer = NULL;
|
||||
UINTN mVarCheckAddressPointerCount = 0;
|
||||
EDKII_VARIABLE_LOCK_PROTOCOL mVariableLock = { VariableLockRequestToLock };
|
||||
|
Loading…
x
Reference in New Issue
Block a user