UefiCpuPkg/PiSmmCpuDxeSmm: Impl GetSmiCommandPort for MM

MM CPU can not call EfiLocateFirstAcpiTable to get the system
port address of the SMI Command Port. This patch just hard-code
to 0xB2 for MM CPU.

Signed-off-by: Jiaxin Wu <jiaxin.wu@intel.com>
Cc: Ray Ni <ray.ni@intel.com>
Cc: Rahul Kumar <rahul1.kumar@intel.com>
Cc: Gerd Hoffmann <kraxel@redhat.com>
Cc: Star Zeng <star.zeng@intel.com>
Cc: Dun Tan <dun.tan@intel.com>
Cc: Hongbin1 Zhang <hongbin1.zhang@intel.com>
Cc: Wei6 Xu <wei6.xu@intel.com>
Cc: Yuanhao Xie <yuanhao.xie@intel.com>
This commit is contained in:
Jiaxin Wu 2024-06-26 13:19:21 +08:00 committed by mergify[bot]
parent ee54bda382
commit 5f88a44637

View File

@ -9,6 +9,19 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
#include "PiSmmCpuCommon.h" #include "PiSmmCpuCommon.h"
/**
To get system port address of the SMI Command Port.
**/
VOID
GetSmiCommandPort (
VOID
)
{
mSmiCommandPort = 0xB2;
DEBUG ((DEBUG_INFO, "mSmiCommandPort = %x\n", mSmiCommandPort));
}
/** /**
Get SmmCpuSyncConfig data: RelaxedMode, SyncTimeout, SyncTimeout2. Get SmmCpuSyncConfig data: RelaxedMode, SyncTimeout, SyncTimeout2.