VirtualBox

Changeset 106558 in vbox


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

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

Location:
trunk/src/VBox/Runtime
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/Makefile.kmk

    r106450 r106558  
    28642864RuntimeGuestR3Shared_INST                = $(INST_ADDITIONS_LIB)
    28652865ifdef VBOX_WITH_NOCRT_STATIC
    2866  if1of ($(KBUILD_TARGET), win)
     2866 if1of ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH), win.x86 win.amd64)
    28672867  RuntimeGuestR3Shared_SDKS              = $(filter-out VBoxSoftFloatR3Shared,$(RuntimeGuestR3_SDKS)) VBoxSoftFloatGuestR3Shared
    28682868  RuntimeGuestR3Shared_SOURCES           = $(RuntimeGuestR3_SOURCES) \
  • 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"
  • trunk/src/VBox/Runtime/common/sort/nocrt-qsort.cpp

    r106061 r106558  
    4949# define NEED_COMPARE_WRAPPER
    5050/** @callback_method_impl{FNRTSORTCMP} */
    51 static int DECLCALLBACK(int) CompareWrapper(void const *pvElement1, void const *pvElement2, void *pvUser))
     51static DECLCALLBACK(int) CompareWrapper(void const *pvElement1, void const *pvElement2, void *pvUser)
    5252{
    5353    int (*pfnCompare)(const void *pv1, const void *pv2) = (int (*)(const void *pv1, const void *pv2))(uintptr_t)pvUser;
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