Hi, > + if (PagingMode == Paging4Level1GB || PagingMode == Paging4Level) { > + // > + // The max lineaddress bits is 48 for 4 level page table. > + // > + VirPhyAddressSize.Bits.PhysicalAddressBits = MIN > (VirPhyAddressSize.Bits.PhysicalAddressBits, 48); > + }
virtual addresses in long mode are sign-extended. Which means you have only 47 bits (or 56 bits with 5-level paging) for identity mappings. take care, Gerd -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#104381): https://edk2.groups.io/g/devel/message/104381 Mute This Topic: https://groups.io/mt/98780500/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-