VirtualBox

Changeset 94908 in vbox


Ignore:
Timestamp:
May 7, 2022 7:25:46 PM (3 years ago)
Author:
vboxsync
Message:

/Config.kmk,IPRT: Some arm64 adjustments. bugref:10224

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Config.kmk

    r94900 r94908  
    18991899DEFS.x86         = RT_ARCH_X86 __X86__
    19001900DEFS.amd64       = RT_ARCH_AMD64 __AMD64__
     1901DEFS.arm64       = RT_ARCH_ARM64
    19011902DEFS.sparc32     = RT_ARCH_SPARC
    19021903DEFS.sparc64     = RT_ARCH_SPARC64
  • trunk/src/VBox/Runtime/common/misc/zero-alt.S

    r93288 r94908  
    3131        .section    __TEXT,__const
    3232# define NAME(a) _##a
    33 #elif defined(ASM_FORMAT_ELF) && (defined(RT_ARCH_SPARC) || defined(RT_ARCH_SPARC64))
    34 ! Putting it in the rodata segment/section for now.
     33#elif defined(ASM_FORMAT_ELF) && (defined(RT_ARCH_ARM64) || defined(RT_ARCH_SPARC) || defined(RT_ARCH_SPARC64))
     34/* Putting it in the rodata segment/section for now. */
    3535        .file       "zero-alt.S"
    3636        .section    ".rodata"
    3737# define NAME(a) a
     38# define NEED_HIDDEN
    3839#else
    3940# error "PORT ME!"
     
    4344        .globl      NAME(g_abRTZeroPage)
    4445#ifdef ASM_FORMAT_ELF
    45 # if defined(RT_ARCH_SPARC) || defined(RT_ARCH_SPARC64)
     46# ifdef NEED_HIDDEN
    4647        .hidden     NAME(g_abRTZeroPage)
    4748# endif
     
    5657        .globl      NAME(g_abRTZero4K)
    5758#ifdef ASM_FORMAT_ELF
    58 # if defined(RT_ARCH_SPARC) || defined(RT_ARCH_SPARC64)
     59# ifdef NEED_HIDDEN
    5960        .hidden     NAME(g_abRTZero4K)
    6061# endif
     
    6566        .globl      NAME(g_abRTZero8K)
    6667#ifdef ASM_FORMAT_ELF
    67 # if defined(RT_ARCH_SPARC) || defined(RT_ARCH_SPARC64)
     68# ifdef NEED_HIDDEN
    6869        .hidden     NAME(g_abRTZero8K)
    6970# endif
     
    7475        .globl      NAME(g_abRTZero16K)
    7576#ifdef ASM_FORMAT_ELF
    76 # if defined(RT_ARCH_SPARC) || defined(RT_ARCH_SPARC64)
     77# ifdef NEED_HIDDEN
    7778        .hidden     NAME(g_abRTZero16K)
    7879# endif
     
    8384        .globl      NAME(g_abRTZero32K)
    8485#ifdef ASM_FORMAT_ELF
    85 # if defined(RT_ARCH_SPARC) || defined(RT_ARCH_SPARC64)
     86# ifdef NEED_HIDDEN
    8687        .hidden     NAME(g_abRTZero32K)
    8788# endif
     
    9293        .globl      NAME(g_abRTZero64K)
    9394#ifdef ASM_FORMAT_ELF
    94 # if defined(RT_ARCH_SPARC) || defined(RT_ARCH_SPARC64)
     95# ifdef NEED_HIDDEN
    9596        .hidden     NAME(g_abRTZero64K)
    9697# endif
     
    102103#ifdef ASM_FORMAT_MACHO
    103104        .space      65536
    104 #elif defined(ASM_FORMAT_ELF) && (defined(RT_ARCH_SPARC) || defined(RT_ARCH_SPARC64))
     105#elif defined(ASM_FORMAT_ELF)
    105106        .skip       65536
    106107#endif
  • trunk/src/VBox/Runtime/r3/linux/fileaio-linux.cpp

    r93115 r94908  
    113113#endif
    114114    /** How many bytes to transfer. */
    115 #ifdef RT_ARCH_X86
     115#if ARCH_BITS == 32
    116116    uint32_t  cbTransfer;
    117117    uint32_t  u32Padding2;
    118 #elif defined(RT_ARCH_AMD64)
     118#elif ARCH_BITS == 64
    119119    uint64_t  cbTransfer;
    120120#else
     
    139139    /** The pvUser field from the iocb. */
    140140    void         *pvUser;
    141 #ifdef RT_ARCH_X86
     141#if ARCH_BITS == 32
    142142    uint32_t      u32Padding0;
    143143#endif
    144144    /** The LNXKAIOIOCB object this event is for. */
    145145    PLNXKAIOIOCB *pIoCB;
    146 #ifdef RT_ARCH_X86
     146#if ARCH_BITS == 32
    147147    uint32_t      u32Padding1;
    148148#endif
    149149    /** The result code of the operation .*/
    150 #ifdef RT_ARCH_X86
     150#if ARCH_BITS == 32
    151151    int32_t       rc;
    152152    uint32_t      u32Padding2;
    153 #elif defined(RT_ARCH_AMD64)
     153#elif ARCH_BITS == 64
    154154    int64_t       rc;
    155155#else
     
    157157#endif
    158158    /** Secondary result code. */
    159 #ifdef RT_ARCH_X86
     159#if ARCH_BITS == 32
    160160    int32_t       rc2;
    161161    uint32_t      u32Padding3;
    162 #elif defined(RT_ARCH_AMD64)
     162#elif ARCH_BITS == 64
    163163    int64_t       rc2;
    164164#else
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