VirtualBox

Ignore:
Timestamp:
Mar 13, 2023 11:40:51 AM (2 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
156266
Message:

ValidationKit: More work to get it running on arm64, bugref:9898

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/testboxscript/TestBoxHelper.cpp

    r98103 r98929  
    5656# include <iprt/x86.h>
    5757# include <iprt/asm-amd64-x86.h>
     58#elif defined(RT_ARCH_ARM) || defined(RT_ARCH_ARM64)
     59# include <iprt/asm-arm.h>
    5860#endif
    5961
     
    671673        return cch > 0 ? RTEXITCODE_SUCCESS : RTEXITCODE_FAILURE;
    672674    }
     675#elif defined(RT_ARCH_ARM) || defined(RT_ARCH_ARM64)
     676    /** @todo There is no way to access MIDR_EL1 from userspace except for parsing the various
     677     * OS dependent ways (/proc/cpuinfo, sysctl, ...). Just fake it for now to get it running. */
     678    int cch = RTPrintf("%#x\n", 1);
     679    return cch > 0 ? RTEXITCODE_SUCCESS : RTEXITCODE_FAILURE;
    673680#endif
    674681    return RTEXITCODE_FAILURE;
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