Skip to content

Commit

Permalink
StandaloneMmPkg : Add MM core fv location PPI
Browse files Browse the repository at this point in the history
Add MM core FV location PPI, it will include
MM core FV location which could be in FSP-I
or Bootloader MM FV.

Signed-off-by: Hongbin1 Zhang <[email protected]>
Cc: Jiewen Yao <[email protected]>
Cc: Ray Ni <[email protected]>
Cc: Star Zeng <[email protected]>
Cc: Jiaxin Wu <[email protected]>
Cc: Wei6 Xu <[email protected]>
Cc: Sami Mujawar <[email protected]>
Cc: Ard Biesheuvel <[email protected]>
Cc: Supreeth Venkatesh <[email protected]>
  • Loading branch information
hongbin123 committed Dec 17, 2024
1 parent cef65b2 commit e905eea
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
35 changes: 35 additions & 0 deletions StandaloneMmPkg/Include/Ppi/MmCoreFvLocationPpi.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
/** @file
MM Core FV location PPI header file.
MM Core FV location PPI is used by StandaloneMm IPL to find MM Core
.
Copyright (c) 2024, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/

#ifndef MM_CORE_FV_LOCATION_PPI_H_
#define MM_CORE_FV_LOCATION_PPI_H_

#pragma pack(1)

///
/// Global ID for the MM_CORE_FV_LOCATION_PPI.
///
#define MM_CORE_FV_LOCATION_GUID \
{ \
0x47a00618, 0x237a, 0x4386, { 0x8f, 0xc5, 0x2a, 0x86, 0xd8, 0xac, 0x41, 0x05 } \
}

typedef struct {
EFI_PHYSICAL_ADDRESS Address;
UINT64 Size;
} MM_CORE_FV_LOCATION_PPI;

extern EFI_GUID gMmCoreFvLocationPpiGuid;

#pragma pack()

#endif
3 changes: 3 additions & 0 deletions StandaloneMmPkg/StandaloneMmPkg.dec
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@

gEventMmDispatchGuid = { 0x7e6efffa, 0x69b4, 0x4c1b, { 0xa4, 0xc7, 0xaf, 0xf9, 0xc9, 0x24, 0x4f, 0xee }}

[Ppis]
gMmCoreFvLocationPpiGuid = { 0x47a00618, 0x237a, 0x4386, { 0x8f, 0xc5, 0x2a, 0x86, 0xd8, 0xac, 0x41, 0x05 }}

[PcdsFixedAtBuild, PcdsPatchableInModule]
## Maximum permitted encapsulation levels of sections in a firmware volume,
# in the MM phase. Minimum value is 1. Sections nested more deeply are rejected.
Expand Down

0 comments on commit e905eea

Please sign in to comment.