UefiCpuPkg/PiSmmCpuDxeSmm: Add volatile to mNumberToFinish
authorMichael Kinney <michael.d.kinney@intel.com>
Thu, 17 Nov 2016 20:43:04 +0000 (12:43 -0800)
committerMichael Kinney <michael.d.kinney@intel.com>
Fri, 18 Nov 2016 01:37:50 +0000 (17:37 -0800)
commitc773514d457265e9ada334572641e1b137c66aac
treec224281b6eba7a6c09a0ecff690ed9d0ec8c9159
parent672b80c8b74718e8c82373b9d59a06f5b10ddc8c
UefiCpuPkg/PiSmmCpuDxeSmm: Add volatile to mNumberToFinish

Add volatile qualifier to mNumberToFinish to prevent GCC 5.4
compiler from optimizing away required logic in ACPI S3 resume.

Cc: Liming Gao <liming.gao@intel.com>
Cc: Laszlo Ersek <lersek@redhat.com>
Cc: Andrew Fish <afish@apple.com>
Cc: Jeff Fan <jeff.fan@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Michael Kinney <michael.d.kinney@intel.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Jeff Fan <jeff.fan@intel.com>
UefiCpuPkg/PiSmmCpuDxeSmm/CpuS3.c