VirtualBox

Changeset 106921 in vbox for trunk/src/VBox/ExtPacks


Ignore:
Timestamp:
Nov 11, 2024 9:51:28 AM (3 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
165847
Message:

VBoxDTrace,VMM,IPRT: Made the ring-0 component of the DTrace extension pack compile on win.arm64. jiraref:VBP-1447

Location:
trunk/src/VBox/ExtPacks/VBoxDTrace
Files:
4 edited
1 copied

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ExtPacks/VBoxDTrace/Makefile.kmk

    r106061 r106921  
    266266 VBoxDTraceR0_SOURCES = \
    267267        VBoxDTraceR0.cpp \
    268         VBoxDTraceR0A.asm \
    269268        $(VBOXDT_PATH_UTS)/common/dtrace/dtrace.c
     269 VBoxDTraceR0_SOURCES.amd64 = \
     270        VBoxDTraceR0A.asm
     271 VBoxDTraceR0_SOURCES.x86 = \
     272        VBoxDTraceR0A.asm
     273 VBoxDTraceR0_SOURCES.arm64 = \
     274        VBoxDTraceR0A-arm64.S
    270275 VBoxDTraceR0_LIBS = \
    271276        $(PATH_STAGE_LIB)/RuntimeR0$(VBOX_SUFF_LIB) \
  • trunk/src/VBox/ExtPacks/VBoxDTrace/VBoxDTraceR0.cpp

    r106061 r106921  
    2626#include <VBox/log.h>
    2727
    28 #include <iprt/asm-amd64-x86.h>
     28#if defined(RT_ARCH_AMD64) || defined(RT_ARCH_X86)
     29# include <iprt/asm-amd64-x86.h>
     30#endif
    2931#include <iprt/assert.h>
    3032#include <iprt/ctype.h>
  • trunk/src/VBox/ExtPacks/VBoxDTrace/VBoxDTraceR0A-arm64.S

    r106920 r106921  
    1 ; $Id$
    2 ;; @file
    3 ; VBoxDTraceR0 - Assembly Hacks.
    4 ;
    5 ; Contributed by: bird
    6 ;
     1/* $Id$ */
     2/** @file
     3 * VBoxDTraceR0.
     4 *
     5 * Contributed by: bird
     6 */
    77
    8 ;
    9 ; Copyright (C) 2012-2024 Oracle and/or its affiliates.
    10 ;
    11 ; This file is part of VirtualBox base platform packages, as
    12 ; available from http://www.virtualbox.org.
    13 ;
    14 ; The contents of this file are subject to the terms of the Common
    15 ; Development and Distribution License Version 1.0 (CDDL) only, as it
    16 ; comes in the "COPYING.CDDL" file of the VirtualBox distribution.
    17 ;
    18 ; SPDX-License-Identifier: CDDL-1.0
    19 ;
     8/*
     9 * Copyright (C) 2012-2024 Oracle and/or its affiliates.
     10 *
     11 * This file is part of VirtualBox base platform packages, as
     12 * available from http://www.virtualbox.org.
     13 *
     14 * The contents of this file are subject to the terms of the Common
     15 * Development and Distribution License Version 1.0 (CDDL) only, as it
     16 * comes in the "COPYING.CDDL" file of the VirtualBox distribution.
     17 *
     18 * SPDX-License-Identifier: CDDL-1.0
     19 */
    2020
    21 
    22 
    23 %include "iprt/asmdefs.mac"
     21#include "iprt/asmdefs-arm.h"
    2422
    2523BEGINCODE
    2624
     25BEGINPROC dtrace_probe6
     26        b       NAME(dtrace_probe)
     27ENDPROC   dtrace_probe6
    2728
    28 extern NAME(dtrace_probe)
    2929
    30 GLOBALNAME dtrace_probe6
    31     jmp     NAME(dtrace_probe)
    32 
  • trunk/src/VBox/ExtPacks/VBoxDTrace/include/VBoxDTraceTypes.h

    r106061 r106921  
    130130# endif
    131131# if !defined(_LITTLE_ENDIAN) || (!defined(RT_OS_SOLARIS) && !defined(RT_OS_FREEBSD))
     132#  define _LITTLE_ENDIAN            1
     133# endif
     134
     135#elif defined(RT_ARCH_ARM64)
     136# ifndef _LP64
     137#  define _LP64                     1
     138# endif
     139# if !defined(_LITTLE_ENDIAN)
    132140#  define _LITTLE_ENDIAN            1
    133141# endif
  • trunk/src/VBox/ExtPacks/VBoxDTrace/onnv/uts/common/dtrace/dtrace.c

    r83810 r106921  
    114114 */
    115115# include <iprt/asm.h>
    116 # include <iprt/asm-amd64-x86.h>
     116# if defined(RT_ARCH_AMD64) || defined(RT_ARCH_X86)
     117#  include <iprt/asm-amd64-x86.h>
     118# elif defined(RT_ARCH_ARM64)
     119#  include <iprt/asm-arm.h>
     120# endif
    117121# define dtrace_casptr(a_ppvDst, a_pvOld, a_pvNew) \
    118122        VBoxDtCompareAndSwapPtr((void * volatile *)a_ppvDst, a_pvOld, a_pvNew)
     
    133137}
    134138
    135 #define dtrace_membar_consumer()                ASMReadFence()
    136 #define dtrace_membar_producer()                ASMWriteFence()
    137 #define dtrace_interrupt_disable()              ASMIntDisableFlags()
    138 #define dtrace_interrupt_enable(a_EFL)  ASMSetFlags(a_EFL)
     139# define dtrace_membar_consumer()               ASMReadFence()
     140# define dtrace_membar_producer()               ASMWriteFence()
     141# define dtrace_interrupt_disable()             ASMIntDisableFlags()
     142# define dtrace_interrupt_enable(a_EFL)         ASMSetFlags(a_EFL)
    139143
    140144/*
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