X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=src%2Fdevices%2Fdevice.c;h=688ccc9fe2bc37d7dfe7bdbdcea30488d4264f62;hb=e16bee4a7c7723b45d72de29aea496a23fa32028;hp=0d2bf8f1ae5a3d4f891a83e4839c0776ae2e532d;hpb=51615091320a18e39ef2c509ec24e7f80ba71f01;p=coreboot.git diff --git a/src/devices/device.c b/src/devices/device.c index 0d2bf8f1a..688ccc9fe 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; @@ -909,6 +912,7 @@ void dev_enumerate(void) printk(BIOS_ERR, "dev_root missing scan_bus operation"); return; } + printk(BIOS_INFO, "Enumerating buses... starting with root now\n"); scan_bus(root, 0); printk(BIOS_INFO, "done\n"); } @@ -1102,6 +1106,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);