Avoid casting EBDA variables ipl.description and pir_loc.
[seabios.git] / src / coreboot.c
index d92a67fc970457f1f81e5d8cb830479bb6d52d37..0079811e9eba5f1c0197b8616e02b13d9258195e 100644 (file)
@@ -34,7 +34,7 @@ copy_pir(void *pos)
     }
     dprintf(1, "Copying PIR from %p to %x\n", pos, bios_table_cur_addr);
     memcpy((void*)bios_table_cur_addr, pos, p->size);
-    SET_EBDA(pir_loc, bios_table_cur_addr);
+    SET_EBDA(pir_loc, (void*)bios_table_cur_addr);
     bios_table_cur_addr += p->size;
 }
 
@@ -56,7 +56,6 @@ copy_mptable(void *pos)
     }
     dprintf(1, "Copying MPTABLE from %p to %x\n", pos, bios_table_cur_addr);
     memcpy((void*)bios_table_cur_addr, pos, length);
-    SET_EBDA(pir_loc, bios_table_cur_addr);
     bios_table_cur_addr += length;
 }