mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-10-17 15:07:04 +08:00
i386: Quick and dirty hack to get PCI working
This commit is contained in:
@@ -4206,6 +4206,15 @@ pci_reserve_map(device_t dev, device_t child, int type, int *rid,
|
||||
* Allocate enough resource, and then write back the
|
||||
* appropriate BAR for that resource.
|
||||
*/
|
||||
#if defined(__rtems__) && defined(__i386__)
|
||||
/*
|
||||
* FIXME: This is a quick and dirty hack. Use the BIOS or whoever
|
||||
* provided values. The nexus device reserves such allocation requests
|
||||
* offhandedly.
|
||||
*/
|
||||
start = map;
|
||||
end = map + count;
|
||||
#endif /* __rtems__ */
|
||||
resource_list_add(rl, type, *rid, start, end, count);
|
||||
res = resource_list_reserve(rl, dev, child, type, rid, start, end,
|
||||
count, flags & ~RF_ACTIVE);
|
||||
|
Reference in New Issue
Block a user