]> git.proxmox.com Git - mirror_edk2.git/commit
UefiCpuPkg/CpuDxe: clean up PAGE_TABLE_LIB_PAGING_CONTEXT usage.
authorDong, Eric <eric.dong@intel.com>
Thu, 12 Sep 2019 05:22:18 +0000 (13:22 +0800)
committerEric Dong <eric.dong@intel.com>
Wed, 25 Sep 2019 06:29:24 +0000 (14:29 +0800)
commitc70fef962e804eba483512b64ec24169871060be
tree827b6da0e95eacb81269688150cb5aa516d01a41
parenta3596a040bbd363b75a4d79da359374c0f409bc5
UefiCpuPkg/CpuDxe: clean up PAGE_TABLE_LIB_PAGING_CONTEXT usage.

REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1039

Current implementation not checks system mode before using
PAGE_TABLE_LIB_PAGING_CONTEXT.ContextData.X64 or
PAGE_TABLE_LIB_PAGING_CONTEXT.ContextData.Ia32. This patch check the
mode before using the correct one.

Signed-off-by: Eric Dong <eric.dong@intel.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
UefiCpuPkg/CpuDxe/CpuDxe.inf
UefiCpuPkg/CpuDxe/CpuPageTable.c
UefiCpuPkg/CpuDxe/CpuPageTable.h
UefiCpuPkg/CpuDxe/Ia32/PagingAttribute.c [new file with mode: 0644]
UefiCpuPkg/CpuDxe/X64/PagingAttribute.c [new file with mode: 0644]