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.
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 31 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 53 of file ClearCache.c.
VOID InstallClearCacheCallback | ( | VOID | ) |
Definition at line 100 of file ClearCache.c.
STATIC CONST EFI_PEI_NOTIFY_DESCRIPTOR mMpServicesNotify |
Definition at line 92 of file ClearCache.c.