VirtualBox

Changeset 58750 in vbox


Ignore:
Timestamp:
Nov 18, 2015 8:31:38 PM (9 years ago)
Author:
vboxsync
Message:

iprt/asmdefs.mac,bs3kit: Added RT_ASMDEFS_INC_FIRST_FILE so I can redefine macros used by IPRT assembly code and use it in bs3kit.

Location:
trunk
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/asmdefs.mac

    r58691 r58750  
    2323; terms and conditions of either the GPL or the CDDL or both.
    2424;
     25
     26; Special hack for bs3kit.
     27%ifdef RT_ASMDEFS_INC_FIRST_FILE
     28 %include "asmdefs-first.mac"
     29%endif
    2530
    2631%ifndef ___iprt_asmdefs_mac
  • trunk/src/VBox/ValidationKit/bootsectors/bs3kit/Makefile.kmk

    r58720 r58750  
    382382        bs3-cmn-TestSendStrCmd.asm \
    383383        bs3-cmn-TestIsVmmDevTestingPresent.asm \
     384       ../../../Runtime/common/asm/ASMBitFirstClear.asm
    384385
    385386# The BS3Kit library.
     
    387388bs3kit-common-16_TEMPLATE = VBoxBS3KitImg
    388389bs3kit-common-16_DEFS     = TMPL_PE16 BS3_CMN_ONLY
     390bs3kit-common-16_ASDEFS   = RT_ASMDEFS_INC_FIRST_FILE
    389391bs3kit-common-16_SOURCES  = $(VBOX_BS3KIT_COMMON_SOURCES) \
    390392        bs3-system-data.asm
     
    394396bs3kit-common-32_TEMPLATE = VBoxBS3KitImg32
    395397bs3kit-common-32_DEFS     = TMPL_PE32 BS3_CMN_ONLY
     398bs3kit-common-32_ASDEFS   = RT_ASMDEFS_INC_FIRST_FILE
    396399bs3kit-common-32_SOURCES  = $(VBOX_BS3KIT_COMMON_SOURCES)
    397400
     
    400403bs3kit-common-64-asm_TEMPLATE = VBoxBS3KitImg64
    401404bs3kit-common-64-asm_DEFS     = TMPL_LM64 BS3_CMN_ONLY
     405bs3kit-common-64-asm_ASDEFS   = RT_ASMDEFS_INC_FIRST_FILE
    402406bs3kit-common-64-asm_SOURCES  = $(filter %.asm,$(VBOX_BS3KIT_COMMON_SOURCES))
    403407
  • trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3kit.h

    r58720 r58750  
    3636# undef  IN_RING0
    3737#endif
     38
     39/*
     40 * We may want to reuse some IPRT code in the common name space, so we
     41 * redefine the RT_MANGLER to work like BS3_CMN_NM.  (We cannot use
     42 * BS3_CMN_NM yet, as we need to include IPRT headers with function
     43 * declarations before we can define it. Thus the duplciate effort.)
     44 */
     45#define RT_MANGLER(a_Name) RT_CONCAT3(a_Name,_c,ARCH_BITS)
     46#include <iprt/mangling.h>
    3847#include <iprt/x86.h>
     48
     49
    3950
    4051RT_C_DECLS_BEGIN
     
    335346# define BS3_DATA_NM(a_Name)  a_Name
    336347#endif
     348
    337349
    338350/**
     
    387399
    388400
     401
    389402/** @defgroup grp_bs3kit_system System structures
    390403 * @{ */
     
    11811194RT_C_DECLS_END
    11821195
    1183 #endif
    1184 
     1196
     1197#endif
     1198
  • trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3kit.mac

    r58694 r58750  
    3232; If we don't do the latter we end up with an unused 'text' section.
    3333;
     34
     35; Drop the asmdefs-first.mac header for native bs3kit files.
     36%undef RT_ASMDEFS_INC_FIRST_FILE
    3437
    3538;; Wrapper around BITS.
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