VirtualBox

Changeset 14705 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Nov 27, 2008 1:55:13 PM (16 years ago)
Author:
vboxsync
Message:

Make the switcher init a bit more generic.

Location:
trunk/src/VBox/VMM
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/HWACCM.cpp

    r14704 r14705  
    783783        &&  CPUMGetGuestCpuIdFeature(pVM, CPUMCPUIDFEATURE_LONG_MODE))
    784784    {
    785         rc  = VMMR3InitSwitcher3264(pVM);
     785        rc  = VMMR3InitSwitcher(pVM, VMMSWITCHER_32_TO_AMD64);
    786786        if (VBOX_FAILURE(rc))
    787787        {
  • trunk/src/VBox/VMM/VMMSwitcher.cpp

    r14704 r14705  
    953953
    954954/**
    955  * Setup the 32->64 world switcher
     955 * Setup the specified world switcher
    956956 *
    957957 * @returns VBox status code.
    958958 * @param   pVM             VM handle.
    959  */
    960 VMMR3DECL(int) VMMR3InitSwitcher3264(PVM pVM)
     959 * @param   enmSwitcher     Switcher
     960 */
     961VMMR3DECL(int) VMMR3InitSwitcher(PVM pVM, VMMSWITCHER enmSwitcher)
    961962{
    962963    int rc;
     964
     965    AssertReturn(enmSwitcher == VMMSWITCHER_32_TO_AMD64, VERR_INVALID_PARAMETER);
    963966
    964967    uint32_t cPages = RT_ALIGN_Z(pVM->cbSelf, PAGE_SIZE) >> PAGE_SHIFT;
Note: See TracChangeset for help on using the changeset viewer.

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