summaryrefslogtreecommitdiff
path: root/dev/pcidev.cc
diff options
context:
space:
mode:
Diffstat (limited to 'dev/pcidev.cc')
-rw-r--r--dev/pcidev.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/dev/pcidev.cc b/dev/pcidev.cc
index 04a38151e..2bfd8a1c7 100644
--- a/dev/pcidev.cc
+++ b/dev/pcidev.cc
@@ -203,7 +203,7 @@ PciDev::writeConfig(int offset, int size, const uint8_t *data)
case PCI0_ROM_BASE_ADDR:
if (letoh(data32) == 0xfffffffe)
- config.expansionROM = letoh(0xffffffff);
+ config.expansionROM = htole((uint32_t)0xffffffff);
else
config.expansionROM = data32;
break;