fixed to run from flash and ram identically. Also fixed to run EmuTOS with BaS on the m5484lite

This commit is contained in:
Markus Fröschle
2013-12-07 21:16:36 +00:00
parent b61ed9608c
commit 8c39320c54
6 changed files with 19 additions and 14 deletions

View File

@@ -242,8 +242,8 @@ extern int32_t pci_unhook_interrupt(int32_t handle);
((device << 8) | \
(function))
#define PCI_HANDLE(bus, slot, function) (0 | ((bus & 0xff) << 8 | (slot & 0x1f) << 3 | (function & 7)))
#define PCI_BUS_FROM_HANDLE(h) (((h) & 0xff00) >> 8)
#define PCI_HANDLE(bus, slot, function) (0 | ((bus & 0xff) << 10 | (slot & 0x1f) << 3 | (function & 7)))
#define PCI_BUS_FROM_HANDLE(h) (((h) & 0xff00) >> 10)
#define PCI_DEVICE_FROM_HANDLE(h) (((h) & 0xf8) >> 3)
#define PCI_FUNCTION_FROM_HANDLE(h) (((h) & 0x7))