VirtualBox

Changeset 837 in vbox for trunk/src/VBox/Devices


Ignore:
Timestamp:
Feb 12, 2007 12:05:40 PM (18 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
18532
Message:

GC Phys to HC virt conversion changes for dynamic RAM allocation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/PC/DevPcBios.cpp

    r332 r837  
    662662    /* the low ROM mapping. */
    663663    unsigned cb = RT_MIN(g_cbPcBiosBinary, 128 * _1K);
    664     const uint8_t *pb1 = (uint8_t *)MMPhysGCPhys2HCVirt(pVM, 0x00100000 - cb);
     664    const uint8_t *pb1 = (uint8_t *)MMPhysGCPhys2HCVirt(pVM, 0x00100000 - cb, cb);
    665665    AssertRelease(pb1);
    666666    const uint8_t *pb2 = &g_abPcBiosBinary[g_cbPcBiosBinary - cb];
     
    675675
    676676    /* the high ROM mapping. */
    677     pb1 = (uint8_t *)MMPhysGCPhys2HCVirt(pVM, (uint32_t)-g_cbPcBiosBinary);
     677    pb1 = (uint8_t *)MMPhysGCPhys2HCVirt(pVM, (uint32_t)-g_cbPcBiosBinary, g_cbPcBiosBinary);
    678678    AssertRelease(pb1);
    679679    pb2 = &g_abPcBiosBinary[0];
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette