audk/MdePkg/Include
Tom Lendacky 990ab937c2 MdePkg: Clean up GHCB field offsets and save area
BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=3008

Use OFFSET_OF () and sizeof () to calculate the GHCB register field
offsets instead of hardcoding the values in the GHCB_REGISTER enum.
Define only fields that are used per the GHCB specification, which will
result in removing some fields and adding others.

Also, remove the DR7 field from the GHCB_SAVE_AREA structure since it is
not used/defined in the GHCB specification and then rename the reserved
fields as appropriate.

Cc: Michael D Kinney <michael.d.kinney@intel.com>
Cc: Liming Gao <gaoliming@byosoft.com.cn>
Cc: Zhiguang Liu <zhiguang.liu@intel.com>
Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Message-Id: <5e9245c7600b9b2d55dd7586b8df28b91b75b72b.1604685192.git.thomas.lendacky@amd.com>
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
2020-11-10 19:07:55 +00:00
..
AArch64 MdePkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:13 -07:00
Arm MdePkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:13 -07:00
Ebc MdePkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:13 -07:00
Guid MdePkg/SystemResourceTable.h: Add vendor range values 2020-10-28 06:05:52 +00:00
Ia32 MdePkg Base.h: Use correct style to check macro _MSC_VER value 2020-02-06 09:12:07 +00:00
IndustryStandard MdePkg: Definitions for Extended Interrupt Flags 2020-11-03 09:09:22 +00:00
Library MdePkg: Remove code wrapped by DISABLE_NEW_DEPRECATED_INTERFACES 2020-10-13 01:35:03 +00:00
Pi MdePkg: Updates to PI 1.7 Revision numbers 2020-05-15 08:06:09 +00:00
Ppi MdePkg: Added header file for Delayed Dispatch PPI 2020-05-15 08:06:09 +00:00
Protocol MdePkg/Include: Definitions of EFI REST JSON Structure Protocol 2020-11-02 04:31:54 +00:00
Register MdePkg: Clean up GHCB field offsets and save area 2020-11-10 19:07:55 +00:00
RiscV64 MdePkg: Add RISC-V RISCV64 binding 2020-05-07 03:17:15 +00:00
Uefi MdePkg/UefiSpec: separate page access bitmask from SP and CRYPTO caps 2020-10-10 04:04:50 +00:00
X64 MdePkg Base.h: Use correct style to check macro _MSC_VER value 2020-02-06 09:12:07 +00:00
Base.h MdePkg Base.h: Delete prototype for __builtin_return_address 2020-07-28 00:28:14 +00:00
PiDxe.h MdePkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:13 -07:00
PiMm.h MdePkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:13 -07:00
PiPei.h MdePkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:13 -07:00
PiSmm.h MdePkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:13 -07:00
Uefi.h MdePkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:13 -07:00