VirtualBox

Changeset 106426 in vbox for trunk/src/VBox/Runtime/r3/win


Ignore:
Timestamp:
Oct 17, 2024 10:57:54 AM (4 months ago)
Author:
vboxsync
Message:

Runtime/r3/win/thread*-win.cpp: Build fix for arm64, bugref:10392

Location:
trunk/src/VBox/Runtime/r3/win
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/win/thread-win.cpp

    r106061 r106426  
    5050#include "internal/iprt.h"
    5151
    52 #include <iprt/asm-amd64-x86.h>
     52#if defined(RT_ARCH_X86) || defined(RT_ARCH_AMD64)
     53# include <iprt/asm-amd64-x86.h>
     54#elif defined(RT_ARCH_ARM64)
     55# include <iprt/asm-arm.h>
     56#endif
    5357#include <iprt/assert.h>
    5458#include <iprt/cpuset.h>
     
    244248    {
    245249        void *pvTeb = NtCurrentTeb();
    246 # ifdef RT_ARCH_AMD64
     250# if defined(RT_ARCH_AMD64) ||defined(RT_ARCH_ARM64)
    247251        pOleTlsData = *(struct MySOleTlsData **)((uintptr_t)pvTeb + 0x1758); /*TEB.ReservedForOle*/
    248 # elif RT_ARCH_X86
     252# elif defined(RT_ARCH_X86)
    249253        pOleTlsData = *(struct MySOleTlsData **)((uintptr_t)pvTeb + 0x0f80); /*TEB.ReservedForOle*/
    250254# else
  • trunk/src/VBox/Runtime/r3/win/thread2-win.cpp

    r106061 r106426  
    4545#include "internal/iprt.h"
    4646
    47 #include <iprt/asm-amd64-x86.h>
     47#if defined(RT_ARCH_X86) || defined(RT_ARCH_AMD64)
     48# include <iprt/asm-amd64-x86.h>
     49#elif defined(RT_ARCH_ARM64) || defined(RT_ARCH_ARM32)
     50# include <iprt/asm-arm.h>
     51#endif
    4852#include <iprt/errcore.h>
    4953#include <iprt/log.h>
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