Display warning when a PCI device can not be initialised due to insufficient available PCI slots.

This commit is contained in:
SarahW 2018-02-24 15:52:28 +00:00
commit f7384bf085
3 changed files with 10 additions and 0 deletions

View file

@ -1,4 +1,5 @@
#include "ibm.h"
#include "device.h"
#include "io.h"
#include "mem.h"
#include "pic.h"
@ -218,5 +219,9 @@ int pci_add(uint8_t (*read)(int func, int addr, void *priv), void (*write)(int f
}
}
if (current_device_name)
warning("Failed to initialise PCI device '%s' due to insufficient available slots", current_device_name);
else
warning("Failed to initialise PCI device due to insufficient available slots");
return -1;
}