mirror of
https://github.com/tianocore/edk2
synced 2026-08-27 00:23:19 -04:00
UefiCpuPkg/Test: Rename EDKII_PEI_MP_SERVICES2_PPI
EDKII_PEI_MP_SERVICES2_PPI has been renamed to EFI_PEI_MP_SERVICES2_PPI and moved to MdePkg. Relevant changes have been made here. Signed-off-by: Sachin Ganesh <sachinganesh@ami.com>
This commit is contained in:
parent
1d6b8aafa7
commit
7aa2b3106c
4 changed files with 24 additions and 24 deletions
|
|
@ -1,5 +1,5 @@
|
|||
/** @file
|
||||
Common header file for EdkiiPeiMpServices2Ppi and EfiMpServiceProtocol unit test.
|
||||
Common header file for EfiPeiMpServices2Ppi and EfiMpServiceProtocol unit test.
|
||||
|
||||
Copyright (c) 2022, Intel Corporation. All rights reserved.<BR>
|
||||
|
||||
|
|
@ -23,8 +23,8 @@
|
|||
#define RUN_PROCEDURE_TIMEOUT_VALUE 100000 // microseconds
|
||||
|
||||
typedef union {
|
||||
EDKII_PEI_MP_SERVICES2_PPI *Ppi;
|
||||
EFI_MP_SERVICES_PROTOCOL *Protocol;
|
||||
EFI_PEI_MP_SERVICES2_PPI *Ppi;
|
||||
EFI_MP_SERVICES_PROTOCOL *Protocol;
|
||||
} MP_SERVICES;
|
||||
|
||||
typedef struct {
|
||||
|
|
@ -610,7 +610,7 @@ TestSwitchBSP4 (
|
|||
);
|
||||
|
||||
/**
|
||||
Create test suite and unit tests for both EdkiiPeiMpServices2Ppi and EfiMpServiceProtocol.
|
||||
Create test suite and unit tests for both EfiPeiMpServices2Ppi and EfiMpServiceProtocol.
|
||||
|
||||
@param[in] Framework A pointer to the framework that is being persisted.
|
||||
@param[in] Context A pointer to the private data buffer.
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
## @file
|
||||
# PEIM that unit tests the EdkiiPeiMpServices2Ppi
|
||||
# PEIM that unit tests the EfiPeiMpServices2Ppi
|
||||
#
|
||||
# Copyright (c) 2022, Intel Corporation. All rights reserved.<BR>
|
||||
# SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
[Defines]
|
||||
INF_VERSION = 0x00010005
|
||||
BASE_NAME = EdkiiPeiMpServices2PpiPeiUnitTest
|
||||
BASE_NAME = EfiPeiMpServices2PpiPeiUnitTest
|
||||
FILE_GUID = A4914810-4D1E-445E-BD6F-F6821B852B5D
|
||||
MODULE_TYPE = PEIM
|
||||
VERSION_STRING = 1.0
|
||||
|
|
@ -23,7 +23,7 @@
|
|||
[Sources]
|
||||
EfiMpServicesUnitTestCommom.c
|
||||
EfiMpServicesUnitTestCommom.h
|
||||
EdkiiPeiMpServices2PpiUnitTest.c
|
||||
EfiPeiMpServices2PpiUnitTest.c
|
||||
|
||||
[Packages]
|
||||
MdePkg/MdePkg.dec
|
||||
|
|
@ -40,7 +40,7 @@
|
|||
UnitTestLib
|
||||
|
||||
[Ppis]
|
||||
gEdkiiPeiMpServices2PpiGuid ## CONSUMES
|
||||
gEfiPeiMpServices2PpiGuid ## CONSUMES
|
||||
|
||||
[Depex]
|
||||
gEdkiiPeiMpServices2PpiGuid
|
||||
gEfiPeiMpServices2PpiGuid
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
/** @file
|
||||
PEI Module to test APIs defined in EdkiiPeiMpServices2Ppi.
|
||||
PEI Module to test APIs defined in EfiPeiMpServices2Ppi.
|
||||
|
||||
Copyright (c) 2022, Intel Corporation. All rights reserved.<BR>
|
||||
|
||||
|
|
@ -11,23 +11,23 @@
|
|||
#include <Library/PeiServicesLib.h>
|
||||
#include "EfiMpServicesUnitTestCommom.h"
|
||||
|
||||
#define UNIT_TEST_NAME "EdkiiPeiMpServices2Ppi Unit Test"
|
||||
#define UNIT_TEST_NAME "EfiPeiMpServices2Ppi Unit Test"
|
||||
#define UNIT_TEST_VERSION "0.1"
|
||||
|
||||
/**
|
||||
Get EDKII_PEI_MP_SERVICES2_PPI pointer.
|
||||
Get EFI_PEI_MP_SERVICES2_PPI pointer.
|
||||
|
||||
@param[out] MpServices Pointer to the buffer where EDKII_PEI_MP_SERVICES2_PPI is stored.
|
||||
@param[out] MpServices Pointer to the buffer where EFI_PEI_MP_SERVICES2_PPI is stored.
|
||||
|
||||
@retval EFI_SUCCESS EDKII_PEI_MP_SERVICES2_PPI interface is returned
|
||||
@retval EFI_NOT_FOUND EDKII_PEI_MP_SERVICES2_PPI interface is not found
|
||||
@retval EFI_SUCCESS EFI_PEI_MP_SERVICES2_PPI interface is returned
|
||||
@retval EFI_NOT_FOUND EFI_PEI_MP_SERVICES2_PPI interface is not found
|
||||
**/
|
||||
EFI_STATUS
|
||||
MpServicesUnitTestGetMpServices (
|
||||
OUT MP_SERVICES *MpServices
|
||||
)
|
||||
{
|
||||
return PeiServicesLocatePpi (&gEdkiiPeiMpServices2PpiGuid, 0, NULL, (VOID **)&MpServices->Ppi);
|
||||
return PeiServicesLocatePpi (&gEfiPeiMpServices2PpiGuid, 0, NULL, (VOID **)&MpServices->Ppi);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -375,7 +375,7 @@ TestStartupAllCPUs3 (
|
|||
}
|
||||
|
||||
/**
|
||||
Create test suite and unit tests only for EdkiiPeiMpServices2Ppi.
|
||||
Create test suite and unit tests only for EfiPeiMpServices2Ppi.
|
||||
|
||||
@param[in] Framework A pointer to the framework that is being persisted.
|
||||
@param[in] Context A pointer to the private data buffer.
|
||||
|
|
@ -384,7 +384,7 @@ TestStartupAllCPUs3 (
|
|||
@retval Others Create test suite and unit tests unsuccessfully.
|
||||
**/
|
||||
EFI_STATUS
|
||||
AddTestCaseOnlyForEdkiiPeiMpServices2Ppi (
|
||||
AddTestCaseOnlyForEfiPeiMpServices2Ppi (
|
||||
IN UNIT_TEST_FRAMEWORK_HANDLE Framework,
|
||||
IN MP_SERVICE_UT_CONTEXT *Context
|
||||
)
|
||||
|
|
@ -412,7 +412,7 @@ AddTestCaseOnlyForEdkiiPeiMpServices2Ppi (
|
|||
|
||||
/**
|
||||
Standard PEIM entry point for unit test execution from PEI.
|
||||
Initialize the unit test framework, suite, and unit tests for the EdkiiPeiMpServices2Ppi and run the unit test.
|
||||
Initialize the unit test framework, suite, and unit tests for the EfiPeiMpServices2Ppi and run the unit test.
|
||||
|
||||
@param[in] FileHandle Handle of the file being invoked.
|
||||
@param[in] PeiServices Pointer to PEI Services table.
|
||||
|
|
@ -446,16 +446,16 @@ PeiEntryPoint (
|
|||
}
|
||||
|
||||
//
|
||||
// Create test suite and unit tests only for EdkiiPeiMpServices2Ppi.
|
||||
// Create test suite and unit tests only for EfiPeiMpServices2Ppi.
|
||||
//
|
||||
Status = AddTestCaseOnlyForEdkiiPeiMpServices2Ppi (Framework, &Context);
|
||||
Status = AddTestCaseOnlyForEfiPeiMpServices2Ppi (Framework, &Context);
|
||||
if (EFI_ERROR (Status)) {
|
||||
DEBUG ((DEBUG_ERROR, "Failed in AddTestCaseOnlyForEdkiiPeiMpServices2Ppi. Status = %r\n", Status));
|
||||
DEBUG ((DEBUG_ERROR, "Failed in AddTestCaseOnlyForEfiPeiMpServices2Ppi. Status = %r\n", Status));
|
||||
goto EXIT;
|
||||
}
|
||||
|
||||
//
|
||||
// Create test suite and unit tests for both EdkiiPeiMpServices2Ppi and EfiMpServiceProtocol.
|
||||
// Create test suite and unit tests for both EfiPeiMpServices2Ppi and EfiMpServiceProtocol.
|
||||
//
|
||||
Status = AddCommonTestCase (Framework, &Context);
|
||||
if (EFI_ERROR (Status)) {
|
||||
|
|
@ -197,7 +197,7 @@
|
|||
UefiCpuPkg/Library/SmmCpuRendezvousLib/SmmCpuRendezvousLib.inf
|
||||
UefiCpuPkg/Library/CpuPageTableLib/CpuPageTableLib.inf
|
||||
UefiCpuPkg/Library/CpuExceptionHandlerLib/UnitTest/PeiCpuExceptionHandlerLibUnitTest.inf
|
||||
UefiCpuPkg/Test/UnitTest/EfiMpServicesPpiProtocol/EdkiiPeiMpServices2PpiPeiUnitTest.inf
|
||||
UefiCpuPkg/Test/UnitTest/EfiMpServicesPpiProtocol/EfiPeiMpServices2PpiPeiUnitTest.inf
|
||||
UefiCpuPkg/Test/UnitTest/EfiMpServicesPpiProtocol/EfiMpServiceProtocolDxeUnitTest.inf
|
||||
UefiCpuPkg/Test/UnitTest/EfiMpServicesPpiProtocol/EfiMpServiceProtocolDynamicCmdUnitTest.inf {
|
||||
<LibraryClasses>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue