]> git.proxmox.com Git - mirror_edk2.git/commit
UefiCpuPkg: Clean up save state boundary checks and comments.
authorMark Wilson <Mark.Wilson@amd.com>
Fri, 13 Nov 2020 00:05:18 +0000 (08:05 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Wed, 1 Sep 2021 06:07:56 +0000 (06:07 +0000)
commitb170806518c1e414939c8b085866544814e1ce8e
tree89c8cd91cee4fdc540d633907ae04bd841eed4c4
parent3b3f88228812e2c642eea8746858a4dad928ebf7
UefiCpuPkg: Clean up save state boundary checks and comments.

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

In functions ReadSaveStateRegisterByIndex and WriteSaveStateRegister:
* check width > 4 instead of >= 4 when writing upper 32 bytes.
  - This improves the code but will not affect functionality.

Cc: Eric Dong <eric.dong@intel.com>
Reviewed-by: Ray Ni <ray.ni@intel.com>
Signed-off-by: Mark Wilson <Mark.Wilson@amd.com>
UefiCpuPkg/PiSmmCpuDxeSmm/SmramSaveState.c