diff --git a/UefiCpuPkg/Library/CpuMmuLib/LoongArch64/CpuMmu.c b/UefiCpuPkg/Library/CpuMmuLib/LoongArch64/CpuMmu.c index bb9f904195..6d77a1221f 100644 --- a/UefiCpuPkg/Library/CpuMmuLib/LoongArch64/CpuMmu.c +++ b/UefiCpuPkg/Library/CpuMmuLib/LoongArch64/CpuMmu.c @@ -513,10 +513,6 @@ UpdateRegionMappingRecursive ( EntryValue |= PAGE_GLOBAL | PAGE_VALID; } - if ((AttributeSetMask & PAGE_NO_READ) != 0) { - EntryValue &= ~PAGE_VALID; - } - ReplaceTableEntry (Entry, EntryValue, RegionStart, TableIsLive); } }