]> git.proxmox.com Git - mirror_edk2.git/commit - MdeModulePkg/MdeModulePkg.dec
MdeModulePkg: Disambiguate the meaning of PcdDxeIplSwitchToLongMode
authorZhiguang Liu <zhiguang.liu@intel.com>
Mon, 9 Jan 2023 03:34:22 +0000 (11:34 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Tue, 7 Feb 2023 04:16:36 +0000 (04:16 +0000)
commit8a763b533bb1b10af2831f6c35d6545bdd5c69d1
treea6dd924e0c995723195f6d085e4cd6c27fb336e3
parentaef0061ac22fb14d631aa0398d2cb496b2f7b8c8
MdeModulePkg: Disambiguate the meaning of PcdDxeIplSwitchToLongMode

Literally, the meaning of PcdDxeIplSwitchToLongMode is clear, indicating
whether need switch to long mode when loading DxeCore.
However, the comments in dec are confusing for the case where PEI core and
DXE core are both in 64-bit. This patch makes it clear.
PcdDxeIplSwitchToLongMode is true only when PEI core is 32-bit, and switch
to long mode to load 64-bit DXE core. In other cases, this PCD is false.
This also aligns with current usage in OvmfPkg.

Cc: Jian J Wang <jian.j.wang@intel.com>
Cc: Liming Gao <gaoliming@byosoft.com.cn>
Cc: Ray Ni <ray.ni@intel.com>
Signed-off-by: Zhiguang Liu <zhiguang.liu@intel.com>
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
Reviewed-by: Ray Ni <ray.ni@intel.com>
MdeModulePkg/MdeModulePkg.dec