Skip to contentSkip to conversation

alpha: Add irongate_io to to PCI bus resources

PATCH New Matt Turner 1 participant 1 message Nov 21, 2012 Alpha port

lore
Share & tools
lore

Matt Turner

author maintainer
#0 lore raw

PATCH 1/1 alpha: Add irongate_io to to PCI bus resources

From: Jay Estabrook <[email protected]>

Fixes a NULL pointer dereference at boot on UP1500.

---
 arch/alpha/kernel/sys_nautilus.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
arch/alpha/kernel/sys_nautilus.c +5 -0
index 4d4c046..1383f86 100644
@@ -188,6 +188,10 @@ nautilus_machine_check(unsigned long vector, unsigned long la_ptr)
 extern void free_reserved_mem(void *, void *);
 extern void pcibios_claim_one_bus(struct pci_bus *);
 
+static struct resource irongate_io = {
+	.name	= "Irongate PCI IO",
+	.flags	= IORESOURCE_IO,
+};
 static struct resource irongate_mem = {
 	.name	= "Irongate PCI MEM",
 	.flags	= IORESOURCE_MEM,
@@ -209,6 +213,7 @@ nautilus_init_pci(void)
 
 	irongate = pci_get_bus_and_slot(0, 0);
 	bus->self = irongate;
+	bus->resource[0] = &irongate_io;
 	bus->resource[1] = &irongate_mem;
 
 	pci_bus_size_bridges(bus);
Signature · 1 line
1.7.8.6