Skip to content

Commit

Permalink
StandaloneMmPkg: remove per-cpu feature on StandaloneMm
Browse files Browse the repository at this point in the history
StandaloneMm in Arm is UP-migratable which means StandaloneMm
cannot run concurrently.

Therefore, remove per-cpu feature in StandaloneMm.

Signed-off-by: Levi Yun <[email protected]>
(cherry picked from commit b6bc133a1065519463c6e5af02e5cf7d18bdfd1d)
  • Loading branch information
LeviYeoReum authored and kuqin12 committed Nov 14, 2024
1 parent 69d3901 commit b5357c3
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions StandaloneMmPkg/Include/Protocol/PiMmCpuDriverEp.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,14 @@

#include <PiMm.h>

#define PI_MM_CPU_DRIVER_EP_GUID { \
#define EDKII_PI_MM_CPU_DRIVER_EP_GUID { \
0x6ecbd5a1, 0xc0f8, 0x4702, { 0x83, 0x01, 0x4f, 0xc2, 0xc5, 0x47, 0x0a, 0x51 } \
}

/**
The PI Standalone MM entry point for handling mm communication request
Here is an example of how the PI_MM_CPU_DRIVER_EP_PROTOCOL is utilized in ARM:
Here is an example of how the EDKII_PI_MM_CPU_DRIVER_EP_PROTOCOL
is utilized in ARM:
1. StandaloneMmCoreEntryPoint loads StandaloneMmCore.
2. StandaloneMmCore dispatches all MM drivers,
including the StandaloneMmCpu driver.
Expand All @@ -33,7 +34,6 @@
See StandaloneMmPkg/StandaloneMmCoreEntryPoint/Arm/StandaloneMmCoreEntryPoint.c
@param [in] EventId The event Id based on firmware.
@param [in] CpuNumber The CPU number.
@param [in] CommBufferAddr Address of the communication buffer.
@retval EFI_SUCCESS Success.
Expand All @@ -44,16 +44,15 @@
**/
typedef
EFI_STATUS
(EFIAPI *PI_MM_CPU_DRIVER_ENTRYPOINT)(
(EFIAPI *EDKII_PI_MM_CPU_DRIVER_ENTRYPOINT)(
IN UINTN EventId,
IN UINTN CpuNumber,
IN UINTN CommBufferAddr
);

typedef struct _EDKII_PI_MM_CPU_DRIVER_EP_PROTOCOL EDKII_PI_MM_CPU_DRIVER_EP_PROTOCOL;

struct _EDKII_PI_MM_CPU_DRIVER_EP_PROTOCOL {
PI_MM_CPU_DRIVER_ENTRYPOINT PiMmCpuDriverEntryPoint;
EDKII_PI_MM_CPU_DRIVER_ENTRYPOINT PiMmCpuDriverEntryPoint;
};

extern EFI_GUID gEdkiiPiMmCpuDriverEpProtocolGuid;
Expand Down

0 comments on commit b5357c3

Please sign in to comment.