summaryrefslogtreecommitdiffstats
path: root/OvmfPkg/SmmControl2Dxe
diff options
context:
space:
mode:
authorLaszlo Ersek <lersek@redhat.com>2017-02-21 14:43:00 +0100
committerLaszlo Ersek <lersek@redhat.com>2017-02-22 03:35:43 +0100
commit21ca2f28e6c5e006820956d7d56150184faeef85 (patch)
tree38e588def3f67e18213728de335eda194743395c /OvmfPkg/SmmControl2Dxe
parent5583a8a4ffd0dda9e069c9676e7ce69bc9fd5514 (diff)
downloadedk2-21ca2f28e6c5e006820956d7d56150184faeef85.tar.gz
edk2-21ca2f28e6c5e006820956d7d56150184faeef85.tar.bz2
edk2-21ca2f28e6c5e006820956d7d56150184faeef85.zip
OvmfPkg/QemuFwCfg: introduce FW_CFG_IO_SELECTOR, adapt the package
Introduce the FW_CFG_IO_SELECTOR macro for IO Port 0x510 (the Selector Register), and update all references in OvmfPkg. Cc: Jordan Justen <jordan.l.justen@intel.com> Suggested-by: Jordan Justen <jordan.l.justen@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek <lersek@redhat.com> Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Diffstat (limited to 'OvmfPkg/SmmControl2Dxe')
-rw-r--r--OvmfPkg/SmmControl2Dxe/SmiFeatures.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/OvmfPkg/SmmControl2Dxe/SmiFeatures.c b/OvmfPkg/SmmControl2Dxe/SmiFeatures.c
index e070969065..352ffa0173 100644
--- a/OvmfPkg/SmmControl2Dxe/SmiFeatures.c
+++ b/OvmfPkg/SmmControl2Dxe/SmiFeatures.c
@@ -281,7 +281,7 @@ SaveSmiFeatures (
S3SaveState, // This
EFI_BOOT_SCRIPT_IO_WRITE_OPCODE, // OpCode
EfiBootScriptWidthUint16, // Width
- (UINT64)0x510, // Address
+ (UINT64)FW_CFG_IO_SELECTOR, // Address
(UINTN)1, // Count
&FeaturesOkItemAsUint16 // Buffer
);