From 9a9bcacbe092fdada6268ef4007430976d945af7 Mon Sep 17 00:00:00 2001 From: Chao Li Date: Tue, 26 Nov 2024 19:39:20 +0800 Subject: 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 --- UefiCpuPkg/Library/CpuMmuLib/LoongArch64/CpuMmu.c | 1 + 1 file changed, 1 insertion(+) diff --git a/UefiCpuPkg/Library/CpuMmuLib/LoongArch64/CpuMmu.c b/UefiCpuPkg/Library/CpuMmuLib/LoongArch64/CpuMmu.c index 8f8254362f..6d77a1221f 100644 --- a/UefiCpuPkg/Library/CpuMmuLib/LoongArch64/CpuMmu.c +++ b/UefiCpuPkg/Library/CpuMmuLib/LoongArch64/CpuMmu.c @@ -595,6 +595,7 @@ EfiAttributeConverse ( LoongArchAttributes &= ~PAGE_DIRTY; break; default: + LoongArchAttributes |= CACHE_CC; break; } -- cgit