]> git.proxmox.com Git - mirror_edk2.git/commit
UefiCpuPkg/CpuDxe: Remove unnecessary macros
authorNi, Ray <ray.ni@intel.com>
Thu, 1 Aug 2019 09:58:25 +0000 (17:58 +0800)
committerEric Dong <eric.dong@intel.com>
Fri, 9 Aug 2019 00:52:08 +0000 (08:52 +0800)
commit29355b4e1aed751addce6ffd85fbb65a2f409a33
treec0b0f19075bfb480fb223590609113c40ed12ac8
parent09f69a877b1b499ff4b6bd6450dc531a19d7ed72
UefiCpuPkg/CpuDxe: Remove unnecessary macros

Today's code defines macros like CR0_PG, CR0_WP, CR4_PSE, CR4_PAE
when checking whether individual bits are set in CR0 or CR4 register.

The patch changes the code to use IA32_CR0 and IA32_CR4 structure
defined in MdePkg/Include/Library/BaseLib.h so that the module
local macros can be removed.

There is no functionality impact to this change.

Cc: Jiewen Yao <jiewen.yao@intel.com>
Signed-off-by: Ray Ni <ray.ni@intel.com>
Reviewed-by: Eric Dong <eric.dong@intel.com>
Regression-tested-by: Laszlo Ersek <lersek@redhat.com>
Signed-off-by: Eric Dong <eric.dong@intel.com>
UefiCpuPkg/CpuDxe/CpuPageTable.c