/** Scan platform hardware information, called by the main entry point (common_boot() ) _before_ bootConfig xml parsing settings are loaded */ void scan_platform(void) { memset(&Platform, 0, sizeof(Platform)); build_pci_dt(); scan_cpu(&Platform); //scan_mem(); Rek: called after pci devs init in fake_efi now ... }
/** Scan platform hardware information, called by the main entry point (common_boot() ) _before_ bootConfig xml parsing settings are loaded */ void scan_platform(void) { Platform = malloc(sizeof(PlatformInfo_t)); memset(Platform, 0, sizeof(PlatformInfo_t)); gPlatform = (void*)Platform; BootOrder = malloc(sizeof(BLESS_EFI_LOAD_OPTION)); memset(BootOrder, 0, sizeof(BLESS_EFI_LOAD_OPTION)); gBootOrder = (void*)BootOrder; build_pci_dt(); scan_cpu(); //Platform); //scan_mem(); Rek: called after pci devs init in fake_efi now ... }