TianoCore EDK2 master
|
#include <Library/CacheMaintenanceLib.h>
#include <Library/DebugLib.h>
#include <Library/PeiServicesLib.h>
#include <Ppi/MpServices.h>
#include "Platform.h"
Go to the source code of this file.
Functions | |
STATIC VOID EFIAPI | ClearCache (IN OUT VOID *WorkSpace) |
STATIC EFI_STATUS EFIAPI | ClearCacheOnMpServicesAvailable (IN EFI_PEI_SERVICES **PeiServices, IN EFI_PEI_NOTIFY_DESCRIPTOR *NotifyDescriptor, IN VOID *Ppi) |
VOID | InstallClearCacheCallback (VOID) |
Variables | |
STATIC CONST EFI_PEI_NOTIFY_DESCRIPTOR | mMpServicesNotify |
Install a callback to clear cache on all processors. This is for conformance with the TCG "Platform Reset Attack Mitigation Specification". Because clearing the CPU caches at boot doesn't impact performance significantly, do it unconditionally, for simplicity's sake.
Copyright (C) 2018, Red Hat, Inc. Copyright (c) 2019, Citrix Systems, Inc.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file ClearCache.c.
Invalidate data & instruction caches. All APs execute this function in parallel. The BSP executes the function separately.
[in,out] | WorkSpace | Pointer to the input/output argument workspace shared by all processors. |
Definition at line 32 of file ClearCache.c.
STATIC EFI_STATUS EFIAPI ClearCacheOnMpServicesAvailable | ( | IN EFI_PEI_SERVICES ** | PeiServices, |
IN EFI_PEI_NOTIFY_DESCRIPTOR * | NotifyDescriptor, | ||
IN VOID * | Ppi | ||
) |
Notification function called when EFI_PEI_MP_SERVICES_PPI becomes available.
[in] | PeiServices | Indirect reference to the PEI Services Table. |
[in] | NotifyDescriptor | Address of the notification descriptor data structure. |
[in] | Ppi | Address of the PPI that was installed. |
Definition at line 54 of file ClearCache.c.
VOID InstallClearCacheCallback | ( | VOID | ) |
Definition at line 101 of file ClearCache.c.
STATIC CONST EFI_PEI_NOTIFY_DESCRIPTOR mMpServicesNotify |
Definition at line 93 of file ClearCache.c.