VirtualBox

Ignore:
Timestamp:
Mar 15, 2017 2:28:43 PM (8 years ago)
Author:
vboxsync
Message:

bs3kit: Override DECLASM for 64-bit GCC targets to ensure we use the same calling convention as when we do the assembling (ASM_CALL64_MSC).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3kit.h

    r66111 r66112  
    3636#ifndef DOXYGEN_RUNNING
    3737# undef  IN_RING0
     38#endif
     39
     40/*
     41 * Make asm.h and friend compatible with our 64-bit assembly config (ASM_CALL64_MSC).
     42 */
     43#if defined(__GNUC__) && ARCH_BITS == 64
     44# undef DECLASM
     45# ifdef __cplusplus
     46#  define DECLASM(type)             extern "C" type BS3_CALL
     47# else
     48#  define DECLASM(type)             type BS3_CALL
     49# endif
    3850#endif
    3951
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