UefiCpuPkg/CpuMmuLib: Adjust default memory attributes on LoongArch

When updating memory attributes, if only access attributes are changed,
the default memory cache attribute is NULL and a CACHE_CC is added by
default.

Signed-off-by: Chao Li <lichao@loongson.cn>
This commit is contained in:
Chao Li
2024-11-26 19:39:20 +08:00
committed by mergify[bot]
parent 9098efdf0d
commit 9a9bcacbe0

View File

@@ -595,6 +595,7 @@ EfiAttributeConverse (
LoongArchAttributes &= ~PAGE_DIRTY;
break;
default:
LoongArchAttributes |= CACHE_CC;
break;
}