Skip to content

Commit

Permalink
StandaloneMmPkg: Move sanity check for comm buffer to entrypoint
Browse files Browse the repository at this point in the history
Arm has three types of communication buffer
    - Non secure communication buffer: shared buffer with NS partition
    - Secure communication buffer: shared buffer with Secure partition
    - Internal Misc service buffer: For misc service
        i.e. for services that do not use MmCommunication protocol,
        a buffer is created and populated internally.

Since, internal Misc service buffer is allocated dynamically in
StandaloneMm there is no additional check required for the Misc
service buffer.

This patch move sanity check of communication buffer from
StandaloneMmCpu Driver to StandaloneMmEntryPoint.

Signed-off-by: Levi Yun <[email protected]>
(cherry picked from commit 7680b51dcf2c7bfb0a54d868568f7ba91c5210ae)
  • Loading branch information
LeviYeoReum authored and kuqin12 committed Nov 14, 2024
1 parent d38e030 commit 69d3901
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions StandaloneMmPkg/Include/Library/Arm/StandaloneMmCoreEntryPoint.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,16 @@

#define CPU_INFO_FLAG_PRIMARY_CPU 0x00000001

/*
* Index information for mm range descriptors in
* gEfiMmPeiMmramMemoryReserveGuid Guid Hob.
*/
#define MMRAM_DESC_IDX_IMAGE 0
#define MMRAM_DESC_IDX_SECURE_SHARED_BUFFER 1
#define MMRAM_DESC_IDX_NORMAL_SHARED_BUFFER 2
#define MMRAM_DESC_IDX_HEAP 3
#define MMRAM_DESC_MIN_COUNT 4

/*
* Communication ABI protocol to communicate between normal/secure partition.
*/
Expand Down

0 comments on commit 69d3901

Please sign in to comment.