X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=src%2Fdevices%2Fdevice.c;h=0e9c39e2031d7fe77c5fc4fa8b42d23a6e5a124f;hb=b4aaaa7632116c2fe466095d0cd3cc1247344ca6;hp=a2619bf00070db755f83b8870f5806313f6352be;hpb=abc0c8551604933ca54e9eaa48c3f00e4915dc90;p=coreboot.git diff --git a/src/devices/device.c b/src/devices/device.c index a2619bf00..0e9c39e20 100644 --- a/src/devices/device.c +++ b/src/devices/device.c @@ -41,6 +41,9 @@ #include #include #include +#if CONFIG_ARCH_X86 +#include +#endif /** Linked list of ALL devices */ struct device *all_devices = &dev_root; @@ -322,7 +325,7 @@ static void compute_resources(struct bus *bus, struct resource *bridge, (resource->flags & IORESOURCE_ASSIGNED)) { printk(BIOS_ERR, "Resource limit looks wrong! (no APIC?)\n"); - printk(BIOS_ERR, "%s %02lx limit %08Lx\n", + printk(BIOS_ERR, "%s %02lx limit %08llx\n", dev_path(dev), resource->index, resource->limit); } @@ -627,7 +630,7 @@ static void avoid_fixed_resources(struct device *dev) for (res = dev->resource_list; res; res = res->next) { if ((res->flags & IORESOURCE_FIXED)) continue; - printk(BIOS_SPEW, "%s:@%s %02lx limit %08Lx\n", __func__, + printk(BIOS_SPEW, "%s:@%s %02lx limit %08llx\n", __func__, dev_path(dev), res->index, res->limit); if ((res->flags & MEM_MASK) == PREF_TYPE && (res->limit < limits.pref.limit)) @@ -660,9 +663,9 @@ static void avoid_fixed_resources(struct device *dev) else continue; - printk(BIOS_SPEW, "%s2: %s@%02lx limit %08Lx\n", __func__, + printk(BIOS_SPEW, "%s2: %s@%02lx limit %08llx\n", __func__, dev_path(dev), res->index, res->limit); - printk(BIOS_SPEW, "\tlim->base %08Lx lim->limit %08Lx\n", + printk(BIOS_SPEW, "\tlim->base %08llx lim->limit %08llx\n", lim->base, lim->limit); /* Is the resource outside the limits? */ @@ -1102,6 +1105,11 @@ void dev_initialize(void) printk(BIOS_INFO, "Initializing devices...\n"); +#if CONFIG_ARCH_X86 + /* Ensure EBDA is prepared before Option ROMs. */ + setup_default_ebda(); +#endif + /* First call the mainboard init. */ init_dev(&dev_root);