VirtualBox

Changeset 104238 in vbox for trunk/include


Ignore:
Timestamp:
Apr 8, 2024 8:15:10 PM (10 months ago)
Author:
vboxsync
Message:

VMM/IEM: Refactoring assembly helpers to not pass eflags by reference but instead by value and return the updated value (via eax/w0) - sixth chunk: SHL,SHR,SAR,ROL,ROR,RCL,RCR. bugref:10376

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/asmdefs-arm.h

    r104230 r104238  
    4040#endif
    4141
     42#include <iprt/cdefs.h>
     43
     44
    4245#if !defined(RT_ARCH_ARM64) && !defined(RT_ARCH_ARM32)
    4346# error "Not on ARM64 or ARM32"
     
    4851 * @{
    4952 */
     53
     54/**
     55 * Align code, pad with BRK. */
     56#define ALIGNCODE(alignment)    .balignl alignment, 0xd42000cc
     57
     58/**
     59 * Align data, pad with ZEROs. */
     60#define ALIGNDATA(alignment)    .balign alignment
     61
     62/**
     63 * Align BSS, pad with ZEROs. */
     64#define ALIGNBSS(alignment)     .balign alignment
     65
    5066
    5167/** Marks the beginning of a code section. */
     
    172188 */
    173189.macro BEGINPROC, a_Name
    174     .p2align 2
    175     .globl          NAME(\a_Name)
    176190NAME(\a_Name):
    177191.endm
     
    184198 */
    185199.macro BEGINPROC_HIDDEN, a_Name
    186     .p2align 2
    187200#ifndef ASM_FORMAT_ELF
    188     .private_extern NAME(\a_Name)
    189 #else
    190     .hidden         NAME(\a_Name)
    191 #endif
    192     .globl          NAME(\a_Name)
     201        .private_extern NAME(\a_Name)
     202#else
     203        .hidden         NAME(\a_Name)
     204#endif
     205        .globl          NAME(\a_Name)
    193206NAME(\a_Name):
    194207.endm
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