VirtualBox

Changeset 106625 in vbox for trunk/include


Ignore:
Timestamp:
Oct 23, 2024 3:45:04 PM (7 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
165467
Message:

SUPDrv: Making it build on win.arm64... jiraref:VBP-1253

File:
1 edited

Legend:

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

    r106604 r106625  
    203203#elif defined(ASM_FORMAT_ELF)
    204204        .hidden         NAME(\a_Name)
     205#elif defined(ASM_FORMAT_PE)
     206        .def            NAME(\a_Name)
     207        .type           32      /* function */
     208        .endef
    205209#endif
    206210        .globl          NAME(\a_Name)
     
    209213
    210214
     215/**
     216 * Starts an exported procedure.
     217 *
     218 * @param   a_Name      The unmangled symbol name.
     219 */
     220.macro BEGINPROC_EXPORTED, a_Name
     221#ifdef ASM_FORMAT_MACHO
     222        //.private_extern NAME(\a_Name)
     223#elif defined(ASM_FORMAT_ELF)
     224        //.hidden         NAME(\a_Name)
     225#elif defined(ASM_FORMAT_PE)
     226        .pushsection    .drectve
     227        .string "-export:\a_Name"
     228        .popsection
     229        .def            NAME(\a_Name)
     230        .type           32      /* function */
     231        .endef
     232#endif
     233        .globl          NAME(\a_Name)
     234NAME(\a_Name):
     235.endm
     236
     237
     238/**
     239 * Ends a procedure.
     240 *
     241 * @param   a_Name      The unmangled symbol name.
     242 */
     243.macro ENDPROC, a_Name
     244NAME(\a_Name)\()_EndProc:
     245.endm
     246
     247
    211248/** @} */
    212249
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