On Mon, Mar 11, 2024 at 05:38:17PM +0800, Chao Li wrote: > Added PcdCpuMmuIsEnabled to instruct that the CPU MMU is enabled. > > BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=4584 > > Cc: Ray Ni <ray...@intel.com> > Cc: Rahul Kumar <rahul1.ku...@intel.com> > Cc: Gerd Hoffmann <kra...@redhat.com> > Signed-off-by: Chao Li <lic...@loongson.cn> > --- > UefiCpuPkg/UefiCpuPkg.dec | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/UefiCpuPkg/UefiCpuPkg.dec b/UefiCpuPkg/UefiCpuPkg.dec > index a23a90ec99..b27cf88aee 100644 > --- a/UefiCpuPkg/UefiCpuPkg.dec > +++ b/UefiCpuPkg/UefiCpuPkg.dec > @@ -486,5 +486,10 @@ [PcdsDynamic, PcdsDynamicEx] > # @Prompt GHCB Hypervisor Features > gUefiCpuPkgTokenSpaceGuid.PcdGhcbHypervisorFeatures|0x0|UINT64|0x60000018 > > + ## This dynamic PCD indicates whether CPU MMU is enabled. > + # TRUE - CPU MMU is enabled. > + # FASLE - CPU MMU have not enabled. > + gUefiCpuPkgTokenSpaceGuid.PcdCpuMmuIsEnabled|FALSE|BOOLEAN|0x60000023
Why create a PCD for this? Can't you simply read the control register to figure whenever paging is enabled or not? take care, Gerd -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#116787): https://edk2.groups.io/g/devel/message/116787 Mute This Topic: https://groups.io/mt/104859880/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-