diff options
Diffstat (limited to 'lib_i386/pci.c')
-rw-r--r-- | lib_i386/pci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib_i386/pci.c b/lib_i386/pci.c index 4331b04418..f366bdc672 100644 --- a/lib_i386/pci.c +++ b/lib_i386/pci.c @@ -60,7 +60,7 @@ int pci_shadow_rom(pci_dev_t dev, unsigned char *dest) vendor, device, class_code); #endif /* Enable the rom addess decoder */ - pci_write_config_dword(dev, PCI_ROM_ADDRESS, PCI_ROM_ADDRESS_MASK); + pci_write_config_dword(dev, PCI_ROM_ADDRESS, (u32)PCI_ROM_ADDRESS_MASK); pci_read_config_dword(dev, PCI_ROM_ADDRESS, &addr_reg); if (!addr_reg) { |