VirtualBox

Ignore:
Timestamp:
Oct 21, 2024 11:31:16 AM (5 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
165392
Message:

IPRT: Some nocrt/arm64 build fixes. jiraref:VBP-1171

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/compiler/vcc/stacksup-vcc.cpp

    r106061 r106558  
    4242
    4343#include <iprt/asm.h>
    44 #include <iprt/asm-amd64-x86.h>
     44#if defined(RT_ARCH_AMD64) || defined(RT_ARCH_X86)
     45# include <iprt/asm-amd64-x86.h>
     46#elif defined(RT_ARCH_ARM64)
     47# include <iprt/asm-arm.h>
     48#endif
    4549#ifndef IPRT_NOCRT_WITHOUT_FATAL_WRITE
    4650# include <iprt/assert.h>
     
    6266#elif defined(RT_ARCH_X86)
    6367# define MY_GET_PC_FROM_CONTEXT(a_pCtx)  ((a_pCtx)->Eip)
     68#elif defined(RT_ARCH_ARM64)
     69# define MY_GET_PC_FROM_CONTEXT(a_pCtx)  ((a_pCtx)->Pc)
    6470#else
    6571# error "Port Me!"
     
    169175# elif defined(RT_ARCH_X86)
    170176            /* .ExceptionAddress = */       (void *)pCpuCtx->Eip,
     177# elif defined(RT_ARCH_ARM64)
     178            /* .ExceptionAddress = */       (void *)pCpuCtx->Pc,
    171179# else
    172180#  error "Port me!"
     
    339347# elif defined(RT_ARCH_X86)
    340348                 pCpuCtx->Eip, pCpuCtx->Esp, pCpuCtx->Ebp
     349# elif defined(RT_ARCH_ARM64)
     350                 pCpuCtx->Pc, pCpuCtx->Sp, pCpuCtx->Bp
    341351# else
    342352#  error "unsupported arch"
     
    350360# elif defined(RT_ARCH_X86)
    351361    rtNoCrtFatalWritePtr((void *)pCpuCtx->Eip);
     362# elif defined(RT_ARCH_ARM64)
     363    rtNoCrtFatalWritePtr((void *)pCpuCtx->Pc);
    352364# else
    353365#  error "unsupported arch"
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