VirtualBox

Changeset 101063 in vbox for trunk/src/VBox/Main/src-server


Ignore:
Timestamp:
Sep 8, 2023 12:41:13 PM (17 months ago)
Author:
vboxsync
Message:

Main: More stub code for ARM. bugref:10384

Location:
trunk/src/VBox/Main/src-server
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/PlatformARMImpl.cpp

    r101054 r101063  
    8686    AssertReturn(autoInitSpan.isOk(), E_FAIL);
    8787
    88     RT_NOREF(aParent, aMachine);
     88    /* share the parent + machine weakly */
     89    unconst(mParent)  = aParent;
     90    unconst(mMachine) = aMachine;
     91
     92    m = new Data;
     93    m->bd.allocate();
    8994
    9095    autoInitSpan.setSucceeded();
     
    237242
    238243    /** @todo BUGBUG Implement this form ARM! */
    239     return E_NOTIMPL;
     244    return S_OK;
    240245}
    241246
     
    252257    RT_NOREF(data);
    253258
    254     /** @todo BUGBUG Implement this form ARM! */
    255     return E_NOTIMPL;
    256 }
    257 
     259    /** @todo BUGBUG Implement this for ARM! */
     260    return S_OK;
     261}
     262
     263HRESULT PlatformARM::i_applyDefaults(GuestOSType *aOsType)
     264{
     265    RT_NOREF(aOsType);
     266
     267    /** @todo BUGBUG Implement this for ARM! */
     268    return S_OK;
     269}
  • trunk/src/VBox/Main/src-server/PlatformImpl.cpp

    r101056 r101063  
    525525    }
    526526
    527     AssertFailedReturn(VBOX_E_PLATFORM_ARCH_NOT_SUPPORTED);
     527    return setErrorVrc(VBOX_E_PLATFORM_ARCH_NOT_SUPPORTED, "Platform '%s' not supported", Platform::s_platformArchitectureToStr(m->bd->architectureType));
    528528}
    529529
     
    560560    }
    561561
    562     AssertFailedReturn(VBOX_E_PLATFORM_ARCH_NOT_SUPPORTED);
     562    return setErrorVrc(VBOX_E_PLATFORM_ARCH_NOT_SUPPORTED, "Platform '%s' not supported", Platform::s_platformArchitectureToStr(m->bd->architectureType));
    563563}
    564564
     
    827827}
    828828
     829/**
     830 * Converts a platform architecture to a string.
     831 *
     832 * @returns Platform architecture as a string.
     833 * @param   enmArchitecture         Platform architecture to convert.
     834 */
     835const char *Platform::s_platformArchitectureToStr(PlatformArchitecture_T enmArchitecture)
     836{
     837    switch (enmArchitecture)
     838    {
     839        case PlatformArchitecture_x86: return "x86";
     840        case PlatformArchitecture_ARM: return "ARM";
     841        default:
     842            break;
     843    }
     844
     845    AssertFailedReturn("<None>");
     846}
     847
  • trunk/src/VBox/Main/src-server/PlatformX86Impl.cpp

    r101054 r101063  
    8888    AssertReturn(autoInitSpan.isOk(), E_FAIL);
    8989
    90     m = new Data;
    91 
    9290    /* share the parent + machine weakly */
    9391    unconst(mParent)  = aParent;
    9492    unconst(mMachine) = aMachine;
    9593
     94    m = new Data;
    9695    m->bd.allocate();
    9796
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