-
Notifications
You must be signed in to change notification settings - Fork 132
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MpDxe: Produce MpService protocol to standalone Mp dxe driver
Signed-off-by: Vineel Kovvuri[MSFT] <[email protected]>
- Loading branch information
Showing
9 changed files
with
2,060 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/** @file | ||
Event group triggered when caching attributes are updated in the system. | ||
Copyright (c) Microsoft Corporation. | ||
SPDX-License-Identifier: BSD-2-Clause-Patent | ||
**/ | ||
|
||
#ifndef CACHE_ATTRIBUTES_CHANGE_EVENT_H_ | ||
#define CACHE_ATTRIBUTES_CHANGE_EVENT_H_ | ||
|
||
#define CACHE_ATTRIBUTES_CHANGE_EVENT_GUID \ | ||
{ 0XB8E477C7, 0X26A9, 0X4B9A, { 0XA7, 0XC9, 0X5F, 0X8F, 0X1F, 0X3D, 0X9C, 0X7B } } | ||
|
||
extern EFI_GUID gCacheAttributesChangeEventGuid; | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
## @file | ||
# MP driver installs MP protocol. | ||
# | ||
# Copyright (c) 2008 - 2019, Intel Corporation. All rights reserved.<BR> | ||
# Copyright (c) 2017, AMD Incorporated. All rights reserved.<BR> | ||
# Copyright (c) 2024, Loongson Technology Corporation Limited. All rights reserved.<BR> | ||
# | ||
# SPDX-License-Identifier: BSD-2-Clause-Patent | ||
# | ||
## | ||
|
||
[Defines] | ||
INF_VERSION = 0x00010005 | ||
BASE_NAME = MpDxe | ||
MODULE_UNI_FILE = MpDxe.uni | ||
FILE_GUID = 94598893-936a-481e-998e-1b0880916ae4 | ||
MODULE_TYPE = DXE_DRIVER | ||
VERSION_STRING = 1.0 | ||
ENTRY_POINT = InitializeMp | ||
|
||
[Packages] | ||
MdePkg/MdePkg.dec | ||
MdeModulePkg/MdeModulePkg.dec | ||
UefiCpuPkg/UefiCpuPkg.dec | ||
|
||
[LibraryClasses.common] | ||
BaseLib | ||
BaseMemoryLib | ||
CpuExceptionHandlerLib | ||
CpuLib | ||
DebugLib | ||
DxeServicesTableLib | ||
HobLib | ||
MemoryAllocationLib | ||
MpInitLib | ||
PeCoffGetEntryPointLib | ||
ReportStatusCodeLib | ||
TimerLib | ||
UefiBootServicesTableLib | ||
UefiDriverEntryPoint | ||
UefiLib | ||
PanicLib ## MU_CHANGE | ||
DxeMemoryProtectionHobLib ## MU_CHANGE | ||
DeviceStateLib ## MU_CHANGE | ||
|
||
[LibraryClasses.IA32, LibraryClasses.X64] | ||
LocalApicLib | ||
MtrrLib | ||
|
||
[LibraryClasses.LoongArch64] | ||
CacheMaintenanceLib | ||
CpuMmuLib | ||
|
||
[Sources.IA32, Sources.X64] | ||
MpDxe.c | ||
MpDxe.h | ||
|
||
[Sources.LoongArch64] | ||
LoongArch64/MpDxe.c | ||
MpDxe.h | ||
|
||
[Protocols] | ||
gEfiMpServiceProtocolGuid ## PRODUCES | ||
# gEfiCpuArchProtocolGuid ## CONSUMES | ||
# gEfiMemoryAttributeProtocolGuid ## TCBZ3519 MU_CHANGE PRODUCES | ||
# gEfiSmmBase2ProtocolGuid ## SOMETIMES_CONSUMES | ||
# gMemoryProtectionNonstopModeProtocolGuid ## MU_CHANGE: PRODUCES | ||
# gEdkiiGcdSyncCompleteProtocolGuid ## MU_CHANGE: PRODUCES | ||
# gEfiCpuArchProtocolGuid ## PRODUCES | ||
|
||
[Guids] | ||
gCacheAttributesChangeEventGuid ## CONSUMES | ||
# gIdleLoopEventGuid ## CONSUMES ## Event | ||
# gEfiVectorHandoffTableGuid ## SOMETIMES_CONSUMES ## SystemTable | ||
|
||
[Ppis] | ||
gEfiSecPlatformInformation2PpiGuid ## UNDEFINED # HOB | ||
gEfiSecPlatformInformationPpiGuid ## UNDEFINED # HOB | ||
|
||
# [Pcd] | ||
# gEfiMdeModulePkgTokenSpaceGuid.PcdPteMemoryEncryptionAddressOrMask ## CONSUMES | ||
# # MU_CHANGE START Remove memory protection PCD references | ||
# # gEfiMdeModulePkgTokenSpaceGuid.PcdCpuStackGuard ## CONSUMES | ||
# # gEfiMdeModulePkgTokenSpaceGuid.PcdHeapGuardPropertyMask ## CONSUMES | ||
# # gEfiMdeModulePkgTokenSpaceGuid.PcdNullPointerDetectionPropertyMask ## CONSUMES | ||
# # MU_CHANGE END | ||
# gEfiMdeModulePkgTokenSpaceGuid.PcdTdxSharedBitMask ## CONSUMES | ||
# gUefiCpuPkgTokenSpaceGuid.PcdCpuStackSwitchExceptionList ## CONSUMES | ||
# gUefiCpuPkgTokenSpaceGuid.PcdCpuKnownGoodStackSize ## CONSUMES | ||
|
||
# [Pcd.LoongArch64] | ||
# gUefiCpuPkgTokenSpaceGuid.PcdLoongArchExceptionVectorBaseAddress ## CONSUMES | ||
|
||
[Depex] | ||
gEfiCpuArchProtocolGuid | ||
|
||
[UserExtensions.TianoCore."ExtraFiles"] | ||
MpDxeExtra.uni |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// /** @file | ||
// MP driver installs MP Protocol. | ||
// | ||
// MP driver installs MP Protocol. | ||
// | ||
// Copyright (c) 2008 - 2018, Intel Corporation. All rights reserved.<BR> | ||
// | ||
// SPDX-License-Identifier: BSD-2-Clause-Patent | ||
// | ||
// **/ | ||
|
||
|
||
#string STR_MODULE_ABSTRACT #language en-US "MP driver installs MP Protocol." | ||
|
||
#string STR_MODULE_DESCRIPTION #language en-US "MP driver installs MP Protocol." | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// /** @file | ||
// MpDxe Localized Strings and Content | ||
// | ||
// Copyright (c) 2013 - 2018, Intel Corporation. All rights reserved.<BR> | ||
// | ||
// SPDX-License-Identifier: BSD-2-Clause-Patent | ||
// | ||
// **/ | ||
|
||
#string STR_PROPERTIES_MODULE_NAME | ||
#language en-US | ||
"Multi-processor DXE Driver" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters