[SeaBIOS] [PATCH] Consider a VGA to be active if it responds to either IO or memory access
Ian Campbell
ian.campbell at citrix.com
Thu May 26 16:43:28 CEST 2011
Under Xen the VGA card ends up configured for memory access only.
Signed-off-by: Ian Campbell <ian.campbell at citrix.com>
---
src/pci.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/pci.c b/src/pci.c
index 944a393..471733c 100644
--- a/src/pci.c
+++ b/src/pci.c
@@ -130,7 +130,7 @@ pci_find_vga(void)
}
if (cls == PCI_CLASS_DISPLAY_VGA) {
u16 cmd = pci_config_readw(bdf, PCI_COMMAND);
- if (cmd & PCI_COMMAND_IO && cmd & PCI_COMMAND_MEMORY)
+ if (cmd & PCI_COMMAND_IO || cmd & PCI_COMMAND_MEMORY)
// Found active vga card
return bdf;
}
--
1.7.2.5
More information about the SeaBIOS
mailing list