Clear area changed during shadow enable.
authorKevin O'Connor <kevin@koconnor.net>
Wed, 12 Mar 2008 01:24:53 +0000 (21:24 -0400)
committerKevin O'Connor <kevin@koconnor.net>
Wed, 12 Mar 2008 01:24:53 +0000 (21:24 -0400)
Clearing the area makes analyzing memory dumps a little easier.

src/rombios32.c

index 68bc8c76897957715320681f1999e58ff0c23bfe..88848fdc2cb659c0ebab66d571d152a25125418d 100644 (file)
@@ -348,6 +348,9 @@ static void bios_shadow_init(PCIDevice *d)
         copy_bios(d, v);
     }
 
+    // Clear the area just copied.
+    memcpy((void *)BIOS_TMP_STORAGE, 0, 0x10000);
+
     i440_pcidev = *d;
 }