]> Git Repo - J-u-boot.git/blobdiff - drivers/pci/pci_rom.c
x86: Support ROMs on other archs
[J-u-boot.git] / drivers / pci / pci_rom.c
index 86f0e95cd5af5cf6fd89c566950c1f0dd13025e1..124b730271d9aabb939df03c685cf5f4ea5206d2 100644 (file)
@@ -157,7 +157,13 @@ int pci_rom_load(uint16_t class, struct pci_rom_header *rom_header,
 
        rom_size = rom_header->size * 512;
 
+#ifdef PCI_VGA_RAM_IMAGE_START
        target = (void *)PCI_VGA_RAM_IMAGE_START;
+#else
+       target = (void *)malloc(rom_size);
+       if (!target)
+               return -ENOMEM;
+#endif
        if (target != rom_header) {
                ulong start = get_timer(0);
 
This page took 0.02468 seconds and 4 git commands to generate.