This was posted on issue tracker and approve by ron minnich
Signed-off-by: Ronald G. Minnich


git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2089 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
diff --git a/src/cpu/amd/sc520/sc520.c b/src/cpu/amd/sc520/sc520.c
index 1199ec4..f535662 100644
--- a/src/cpu/amd/sc520/sc520.c
+++ b/src/cpu/amd/sc520/sc520.c
@@ -187,7 +187,8 @@
 }
 
 
-static void enable_resources(device_t dev) {
+#if 0
+void sc520_enable_resources(device_t dev) {
 
 	printk_spew("%s\n", __FUNCTION__);
 	printk_spew("THIS IS FOR THE SC520 =============================\n");
@@ -204,6 +205,7 @@
 	enable_childrens_resources(dev);
 	printk_spew("%s\n", __FUNCTION__);
 }
+#endif
 
 static struct device_operations pci_domain_ops = {
         .read_resources   = pci_domain_read_resources,
diff --git a/src/devices/emulator/biosemu.c b/src/devices/emulator/biosemu.c
index b007ec4..d6ad4e2 100644
--- a/src/devices/emulator/biosemu.c
+++ b/src/devices/emulator/biosemu.c
@@ -122,7 +122,6 @@
 	case 0x6D:
 		if (getIntVect(num) == 0x0000) {
 			printk_debug("un-inited int vector\n");
-			return 1;
 		}
 		if (getIntVect(num) == 0xFF065) {
 			//ret = int42_handler();
diff --git a/src/devices/pci_rom.c b/src/devices/pci_rom.c
index ac2e413..64a85bb 100644
--- a/src/devices/pci_rom.c
+++ b/src/devices/pci_rom.c
@@ -27,7 +27,7 @@
 	pci_write_config32(dev, PCI_ROM_ADDRESS,
 			   rom_address|PCI_ROM_ADDRESS_ENABLE);
 
-	rom_header = rom_address;
+	rom_header = (struct rom_header *) rom_address;
 	printk_spew("PCI Expansion ROM, signature 0x%04x, \n\t"
 		    "INIT size 0x%04x, data ptr 0x%04x\n",
 		    le32_to_cpu(rom_header->signature),
@@ -38,7 +38,7 @@
 		return NULL;
 	}
 
-	rom_data = (unsigned char *) rom_header + le32_to_cpu(rom_header->data);
+	rom_data = (struct pci_data *) ((unsigned char *) rom_header + le32_to_cpu(rom_header->data));
 	printk_spew("PCI ROM Image, Vendor %04x, Device %04x,\n",
 		    rom_data->vendor, rom_data->device);
 	if (dev->vendor != rom_data->vendor || dev->device != rom_data->device) {
@@ -76,8 +76,8 @@
 	rom_address = pci_read_config32(dev, PCI_ROM_ADDRESS);
 
 	do {
-		rom_header = (unsigned char *) rom_header + image_size; // get next image
-	        rom_data = (unsigned char *) rom_header + le32_to_cpu(rom_header->data);
+		rom_header = (struct rom_header *) ((unsigned char *) rom_header + image_size); // get next image
+	        rom_data = (struct pci_data *) ((unsigned char *) rom_header + le32_to_cpu(rom_header->data));
         	image_size = le32_to_cpu(rom_data->ilen) * 512;
 	} while ((rom_data->type!=0) && (rom_data->indicator!=0));  // make sure we got x86 version