diff options
author | Laszlo Ersek <lersek@redhat.com> | 2017-02-21 14:43:00 +0100 |
---|---|---|
committer | Laszlo Ersek <lersek@redhat.com> | 2017-02-22 03:35:43 +0100 |
commit | 21ca2f28e6c5e006820956d7d56150184faeef85 (patch) | |
tree | 38e588def3f67e18213728de335eda194743395c /OvmfPkg/Library | |
parent | 5583a8a4ffd0dda9e069c9676e7ce69bc9fd5514 (diff) | |
download | edk2-platforms-21ca2f28e6c5e006820956d7d56150184faeef85.tar.xz |
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/Library')
-rw-r--r-- | OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgLib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgLib.c b/OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgLib.c index 7744873217..1387ea85f3 100644 --- a/OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgLib.c +++ b/OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgLib.c @@ -42,7 +42,7 @@ QemuFwCfgSelectItem ( )
{
DEBUG ((EFI_D_INFO, "Select Item: 0x%x\n", (UINT16)(UINTN) QemuFwCfgItem));
- IoWrite16 (0x510, (UINT16)(UINTN) QemuFwCfgItem);
+ IoWrite16 (FW_CFG_IO_SELECTOR, (UINT16)(UINTN) QemuFwCfgItem);
}
|