TianoCore EDK2 master
Loading...
Searching...
No Matches
StandaloneMmCpuFeaturesLib.c File Reference
#include <PiMm.h>
#include <Library/PcdLib.h>
#include "CpuFeaturesLib.h"

Go to the source code of this file.

Functions

UINT32 GetCpuMaxLogicalProcessorNumber (VOID)
 
EFI_STATUS EFIAPI StandaloneMmCpuFeaturesLibConstructor (IN EFI_HANDLE ImageHandle, IN EFI_MM_SYSTEM_TABLE *SystemTable)
 

Detailed Description

Standalone MM CPU specific programming.

Copyright (c) 2010 - 2019, Intel Corporation. All rights reserved.
Copyright (c) Microsoft Corporation.
SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file StandaloneMmCpuFeaturesLib.c.

Function Documentation

◆ GetCpuMaxLogicalProcessorNumber()

UINT32 GetCpuMaxLogicalProcessorNumber ( VOID  )

Gets the maximum number of logical processors from the PCD PcdCpuMaxLogicalProcessorNumber.

This access is abstracted from the PCD services to enforce that the PCD be FixedAtBuild in the Standalone MM build of this driver.

Returns
The value of PcdCpuMaxLogicalProcessorNumber.

Definition at line 24 of file StandaloneMmCpuFeaturesLib.c.

◆ StandaloneMmCpuFeaturesLibConstructor()

EFI_STATUS EFIAPI StandaloneMmCpuFeaturesLibConstructor ( IN EFI_HANDLE  ImageHandle,
IN EFI_MM_SYSTEM_TABLE SystemTable 
)

The Standalone MM library constructor.

Parameters
[in]ImageHandleImage handle of this driver.
[in]SystemTableA Pointer to the EFI System Table.
Return values
EFI_SUCCESSThis constructor always returns success.

Definition at line 42 of file StandaloneMmCpuFeaturesLib.c.