+/* -*- Mode:C; c-basic-offset:8; tab-width:8; indent-tabs-mode:t -*- */
/*
* Low-Level PCI Support for PC
*
static int __devinit pci_sanity_check(struct pci_ops *o)
{
u16 x;
- struct pci_bus bus; /* Fake bus and device */
- struct pci_dev dev;
+ /* XEN: static is important to prevent stack overflow! */
+ static struct pci_bus bus; /* Fake bus and device */
+ static struct pci_dev dev;
if (pci_probe & PCI_NO_CHECKS)
return 1;
static void __devinit pcibios_fixup_peer_bridges(void)
{
int n;
- struct pci_bus bus;
- struct pci_dev dev;
+ /* XEN: static is important to prevent stack overflow! */
+ static struct pci_bus bus;
+ static struct pci_dev dev;
u16 l;
if (pcibios_last_bus <= 0 || pcibios_last_bus >= 0xff)