TianoCore EDK2 master
Loading...
Searching...
No Matches
FeatureControl.c File Reference

Go to the source code of this file.

Functions

STATIC VOID EFIAPI WriteFeatureControl (IN OUT VOID *WorkSpace)
 
STATIC EFI_STATUS EFIAPI OnMpServicesAvailable (IN EFI_PEI_SERVICES **PeiServices, IN EFI_PEI_NOTIFY_DESCRIPTOR *NotifyDescriptor, IN VOID *Ppi)
 
VOID InstallFeatureControlCallback (IN OUT EFI_HOB_PLATFORM_INFO *PlatformInfoHob)
 

Variables

STATIC CONST EFI_PEI_NOTIFY_DESCRIPTOR mMpServicesNotify
 

Detailed Description

Install a callback when necessary for setting the Feature Control MSR on all processors.

Copyright (C) 2016, Red Hat, Inc.

SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file FeatureControl.c.

Function Documentation

◆ InstallFeatureControlCallback()

VOID InstallFeatureControlCallback ( IN OUT EFI_HOB_PLATFORM_INFO PlatformInfoHob)

Definition at line 126 of file FeatureControl.c.

◆ OnMpServicesAvailable()

STATIC EFI_STATUS EFIAPI OnMpServicesAvailable ( 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.

Parameters
[in]PeiServicesIndirect reference to the PEI Services Table.
[in]NotifyDescriptorAddress of the notification descriptor data structure.
[in]PpiAddress of the PPI that was installed.
Returns
Status of the notification. The status code returned from this function is ignored.

Definition at line 70 of file FeatureControl.c.

◆ WriteFeatureControl()

STATIC VOID EFIAPI WriteFeatureControl ( IN OUT VOID *  WorkSpace)

Write the Feature Control MSR on an Application Processor or the Boot Processor.

All APs execute this function in parallel. The BSP executes the function separately.

Parameters
[in,out]WorkSpacePointer to the input/output argument workspace shared by all processors.

Definition at line 33 of file FeatureControl.c.

Variable Documentation

◆ mMpServicesNotify

Initial value:
= {
EFI_PEI_PPI_DESCRIPTOR_NOTIFY_CALLBACK |
EFI_PEI_PPI_DESCRIPTOR_TERMINATE_LIST,
&gEfiPeiMpServicesPpiGuid,
}
STATIC EFI_STATUS EFIAPI OnMpServicesAvailable(IN EFI_PEI_SERVICES **PeiServices, IN EFI_PEI_NOTIFY_DESCRIPTOR *NotifyDescriptor, IN VOID *Ppi)

Definition at line 118 of file FeatureControl.c.