X-Git-Url: http://wien.tomnetworks.com/gitweb/?p=coreboot.git;a=blobdiff_plain;f=src%2Fdevices%2Fdevice.c;h=0e9c39e2031d7fe77c5fc4fa8b42d23a6e5a124f;hp=0d2bf8f1ae5a3d4f891a83e4839c0776ae2e532d;hb=b4aaaa7632116c2fe466095d0cd3cc1247344ca6;hpb=1d0b1d4db4eaf41dc7f6b73410cb2612e8769038 diff --git a/src/devices/device.c b/src/devices/device.c index 0d2bf8f1a..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; @@ -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);