Fix a little white space issue. Also, don't copy the rom image
if it is already in its correct location. Signed-off-by: Ronald G. Minnich <rminnich@gmail.com> Acked-by: Stefan Reinauer <stepan@coresystems.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4353 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
parent
e8c6f86b80
commit
a88db7bb87
|
@ -126,9 +126,11 @@ struct rom_header *pci_rom_load(struct device *dev, struct rom_header *rom_heade
|
|||
extern device_t vga_pri; // the primary vga device, defined in device.c
|
||||
if (dev != vga_pri) return NULL; // only one VGA supported
|
||||
#endif
|
||||
if ((void *)PCI_VGA_RAM_IMAGE_START != rom_header) {
|
||||
printk_debug("copying VGA ROM Image from %p to 0x%x, 0x%x bytes\n",
|
||||
rom_header, PCI_VGA_RAM_IMAGE_START, rom_size);
|
||||
memcpy((void *)PCI_VGA_RAM_IMAGE_START, rom_header, rom_size);
|
||||
}
|
||||
return (struct rom_header *) (PCI_VGA_RAM_IMAGE_START);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue