VirtualBox

Changeset 106456 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Oct 17, 2024 2:03:57 PM (6 weeks ago)
Author:
vboxsync
Message:

Runtime/r0drv/nt/thread-r0drv-nt.cpp: win.arm64 build fix, bugref:10734

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r0drv/nt/thread-r0drv-nt.cpp

    r106061 r106456  
    4545#if defined(RT_ARCH_AMD64) || defined(RT_ARCH_X86)
    4646# include <iprt/asm-amd64-x86.h>
     47#elif defined(RT_ARCH_ARM64) || defined(RT_ARCH_ARM32)
     48# include <iprt/asm-arm.h>
    4749#endif
    4850#include <iprt/assert.h>
     
    119121    }
    120122
     123#if defined(RT_ARCH_AMD64) || defined(RT_ARCH_X86) /* Not required in ARM as we don't support pre W10 kernels. */
    121124    /*
    122125     * Fallback approach for pre W10 kernels.
     
    146149    RTCCUINTREG     fSavedFlags  = ASMIntDisableFlags();
    147150
    148 #ifdef RT_ARCH_X86
     151# ifdef RT_ARCH_X86
    149152    PKPCR       pPcr   = (PKPCR)__readfsdword(RT_UOFFSETOF(KPCR,SelfPcr));
    150153    uint8_t    *pbPrcb = (uint8_t *)pPcr->Prcb;
    151154
    152 #elif defined(RT_ARCH_AMD64)
     155# elif defined(RT_ARCH_AMD64)
    153156    /* HACK ALERT! The offset is from windbg/vista64. */
    154157    PKPCR       pPcr   = (PKPCR)__readgsqword(RT_UOFFSETOF(KPCR,Self));
    155158    uint8_t    *pbPrcb = (uint8_t *)pPcr->CurrentPrcb;
    156159
    157 #else
    158 # error "port me"
    159 #endif
     160# endif
    160161
    161162    /* Check QuantumEnd. */
     
    183184    ASMSetFlags(fSavedFlags);
    184185    return fPending;
     186#else
     187    AssertFailed();
     188    return false;
     189#endif
    185190}
    186191
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