[edk2-devel] [edk2-platforms][PATCH V4 6/8] Platform/Loongson: Optimize page table entry null determination.

Chao Li lichao at loongson.cn
Mon Jan 16 03:23:29 UTC 2023


Reviewed-by: Chao Li <lichao at loongson.cn>


Thanks,
Chao
在 2023/1/13 11:17, xianglai 写道:
> 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_


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#98541): https://edk2.groups.io/g/devel/message/98541
Mute This Topic: https://groups.io/mt/96239133/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/edk2-devel-archive/attachments/20230116/31a0a621/attachment.htm>


More information about the edk2-devel-archive mailing list