[edk2-devel] [edk2-platforms][PATCH V2 5/7] Platform/Loongson: Optimize page table entry null determination.
xianglai
lixianglai at loongson.cn
Tue Jan 10 01:16:17 UTC 2023
Modify the null judgment condition of page table entries.
Cc: Ard Biesheuvel <ardb+tianocore at kernel.org>
Cc: Bibo Mao <maobibo at loongson.cn>
Cc: Chao Li <lichao at loongson.cn>
Cc: Leif Lindholm <quic_llindhol at quicinc.com>
Cc: Liming Gao <gaoliming at byosoft.com.cn>
Cc: Michael D Kinney <michael.d.kinney at intel.com>
Signed-off-by: xianglai li <lixianglai at loongson.cn>
---
Platform/Loongson/LoongArchQemuPkg/Library/MmuLib/page.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Platform/Loongson/LoongArchQemuPkg/Library/MmuLib/page.h b/Platform/Loongson/LoongArchQemuPkg/Library/MmuLib/page.h
index 6ab07e7900..84c7c13919 100644
--- a/Platform/Loongson/LoongArchQemuPkg/Library/MmuLib/page.h
+++ b/Platform/Loongson/LoongArchQemuPkg/Library/MmuLib/page.h
@@ -275,6 +275,6 @@ pte_none (
IN PTE pte
)
{
- return (!(PTE_VAL(pte) & (~PAGE_GLOBAL)));
+ return (!(PTE_VAL(pte) & (~PAGE_VALID)));
}
#endif // PAGE_H_
--
2.31.1
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#98221): https://edk2.groups.io/g/devel/message/98221
Mute This Topic: https://groups.io/mt/96168256/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-
More information about the edk2-devel-archive
mailing list