VirtualBox

Changeset 98418 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Feb 1, 2023 9:29:03 PM (23 months ago)
Author:
vboxsync
Message:

ValKit/*.kmk: Automatic scm cleanups. bugref:10348

Location:
trunk/src/VBox/ValidationKit
Files:
14 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/Config.kmk

    r98256 r98418  
    8989ifeq ($(KBUILD_TARGET),solaris)
    9090 TEMPLATE_VBoxValidationKitR3_LIBS += \
    91         kstat \
    92         nsl \
    93         contract
     91        kstat \
     92        nsl \
     93        contract
    9494 if1of ($(KBUILD_TARGET_ARCH), amd64 x86)
    9595  TEMPLATE_VBoxValidationKitR3_LIBS += \
     
    104104# Make VCC100 output work on NT3.x, NT4, W2K, XP and W2K3.
    105105ifndef VBOX_WITH_NOCRT_STATIC
    106 TEMPLATE_VBoxValidationKitR3_LIBS.win.x86 = \
    107        $(PATH_TOOL_$(TEMPLATE_VBoxValidationKitR3_TOOL.win.x86)_LIB)/oldnames.lib \
    108        $(PATH_TOOL_$(TEMPLATE_VBoxValidationKitR3_TOOL.win.x86)_LIB)/libcmt$(VBOX_VCC_CRT_TYPE).lib \
    109        $(PATH_TOOL_$(TEMPLATE_VBoxValidationKitR3_TOOL.win.x86)_LIB)/libcpmt$(VBOX_VCC_CRT_TYPE).lib \
    110         $(PATH_STAGE_LIB)/RuntimeR3VccTricks$(VBOX_SUFF_LIB)
    111 TEMPLATE_VBoxValidationKitR3_LDFLAGS.win.x86 = \
    112         -Include:_vcc100_shell32_fakes_cpp \
    113         -Include:_vcc100_shell32_fakes_asm \
    114         -Section:.bss,RW!K
     106 TEMPLATE_VBoxValidationKitR3_LIBS.win.x86 = \
     107        $(PATH_TOOL_$(TEMPLATE_VBoxValidationKitR3_TOOL.win.x86)_LIB)/oldnames.lib \
     108        $(PATH_TOOL_$(TEMPLATE_VBoxValidationKitR3_TOOL.win.x86)_LIB)/libcmt$(VBOX_VCC_CRT_TYPE).lib \
     109        $(PATH_TOOL_$(TEMPLATE_VBoxValidationKitR3_TOOL.win.x86)_LIB)/libcpmt$(VBOX_VCC_CRT_TYPE).lib \
     110        $(PATH_STAGE_LIB)/RuntimeR3VccTricks$(VBOX_SUFF_LIB)
     111 TEMPLATE_VBoxValidationKitR3_LDFLAGS.win.x86 = \
     112        -Include:_vcc100_shell32_fakes_cpp \
     113        -Include:_vcc100_shell32_fakes_asm \
     114        -Section:.bss,RW!K
    115115endif
    116116TEMPLATE_VBoxValidationKitR3_LDFLAGS.win.x86 += -NoOptIData
     
    152152        $(PATH_STAGE_LIB)/RuntimeR3$(VBOX_SUFF_LIB)
    153153ifndef VBOX_WITH_NOCRT_STATIC
    154 TEMPLATE_VBoxValidationKitR3SupDrv_LDFLAGS.win.x86 = \
    155         -Include:_vcc100_ntdll_fakes_cpp \
    156         -Include:_vcc100_ntdll_fakes_asm
     154 TEMPLATE_VBoxValidationKitR3SupDrv_LDFLAGS.win.x86 = \
     155        -Include:_vcc100_ntdll_fakes_cpp \
     156        -Include:_vcc100_ntdll_fakes_asm
    157157endif
    158158
     
    191191
    192192define def_vbox_validationkit_py_check
    193 $(eval name:=$(basename $(notdir $(py))))
    194 
    195 pylint:  $(name)-py-phony.o
    196 $(name).o: $(name)-py-phony.o
    197 $(PATH_TARGET)/pylint/$(name).o $(name)-py-phony.o:: $(py) | $(PATH_TARGET)/pylint/
    198 ifdef VBOX_WITH_PYLINT
     193 $(eval name:=$(basename $(notdir $(py))))
     194
     195 pylint: $(name)-py-phony.o
     196 $(name).o: $(name)-py-phony.o
     197 $(PATH_TARGET)/pylint/$(name).o $(name)-py-phony.o:: $(py) | $(PATH_TARGET)/pylint/
     198 ifdef VBOX_WITH_PYLINT
    199199        $(QUIET2)$(call MSG_L1,Subjecting $(py) to pylint...)
    200200        $(QUIET)$(REDIRECT) -C "$(dir $(py))" -E LC_ALL=C -E PYTHONPATH="$(VBOX_PYTHONPATH_VALIDATIONKIT)" -- \
    201201                $(VBOX_PYLINT) --rcfile=$(VBOX_PATH_VALIDATIONKIT_SRC)/pylintrc $$(VBOX_PYLINT_FLAGS) $$($(py)_VBOX_PYLINT_FLAGS) ./$(notdir $(py))
    202 endif
     202 endif
    203203        $(QUIET)$(APPEND) -t "$(PATH_TARGET)/pylint/$(name).o"
    204204
    205 ifn1of ($(py),$(VBOX_VALIDATIONKIT_PYUNITTEST_EXCLUDE))
    206 pyunittest: $(name)-pyunittest.o
    207 $(PATH_TARGET)/pyunittest/$(name).o $(name)-pyunittest.o:: $(py) | $(PATH_TARGET)/pyunittest/
     205 ifn1of ($(py), $(VBOX_VALIDATIONKIT_PYUNITTEST_EXCLUDE))
     206  pyunittest: $(name)-pyunittest.o
     207  $(PATH_TARGET)/pyunittest/$(name).o $(name)-pyunittest.o:: $(py) | $(PATH_TARGET)/pyunittest/
    208208        $(QUIET2)$(call MSG_L1,Unittesting Python source $(py)...)
    209209        $(QUIET)$(REDIRECT) -E LC_ALL=C -E PYTHONPATH="$(VBOX_PYTHONPATH_VALIDATIONKIT)" -C $(dir $(py)) \
    210210                -- $(VBOX_UNITTEST_PYTHON) -m unittest -v $(notdir $(basename $(py)))
    211211        $(QUIET)$(APPEND) -t "$(PATH_TARGET)/pyunittest/$(name).o"
    212 VBOX_VALIDATIONKIT_PYUNITTEST_TARGETS += $(PATH_TARGET)/pyunittest/$(name).o
    213 
    214 TESTING += $(name)-pyunittest.o
    215 endif
    216 TESTING += $(name)-py-phony.o
    217 VBOX_VALIDATIONKIT_PYLINT_TARGETS     += $(PATH_TARGET)/pylint/$(name).o
     212  VBOX_VALIDATIONKIT_PYUNITTEST_TARGETS += $(PATH_TARGET)/pyunittest/$(name).o
     213
     214  TESTING += $(name)-pyunittest.o
     215 endif
     216 TESTING += $(name)-py-phony.o
     217 VBOX_VALIDATIONKIT_PYLINT_TARGETS    += $(PATH_TARGET)/pylint/$(name).o
    218218endef # def_vbox_validationkit_py_check
    219219
     
    241241
    242242define def_vbox_validationkit_js_check
    243 $(eval name:=$(basename $(notdir $(js))))
    244 $(name).o $(name).obj: # $(PATH_SUB_CURRENT)/$(js)
     243 $(eval name:=$(basename $(notdir $(js))))
     244 $(name).o $(name).obj: # $(PATH_SUB_CURRENT)/$(js)
    245245        -$(REDIRECT) -E LC_ALL=C  -C $(dir $(js)) -- $$(VBOX_JSHINT) ./$(notdir $(js)) $$(VBOX_JSHINT_FLAGS)
    246 jslint: $(name).o
     246 jslint: $(name).o
    247247endef
    248248
    249249ifdef VBOX_WITH_JSHINT
    250 define def_vbox_validationkit_process_js_sources
     250 define def_vbox_validationkit_process_js_sources
    251251$(if-expr $(words $(_SUB_MAKEFILE_STACK)) <= 0, \
    252252        $(foreach js, $(VBOX_VALIDATIONKIT_JS_SOURCES), $(eval $(def_vbox_validationkit_js_check))),)
    253 endef
     253 endef
    254254endif
    255255
  • trunk/src/VBox/ValidationKit/Makefile.kmk

    r98103 r98418  
    5050#
    5151include $(PATH_SUB_CURRENT)/tests/Makefile.kmk
    52 ifneq ($(KBUILD_HOST),os2)                 # needs yasm
     52ifneq ($(KBUILD_HOST),os2)            # needs yasm
    5353 if1of ($(KBUILD_TARGET_ARCH), amd64 x86) # needs yasm
    5454  include $(PATH_SUB_CURRENT)/bootsectors/Makefile.kmk
     
    113113                $(VBOX_PATH_VALIDATIONKIT)/VBoxValidationKit.iso \
    114114                $(VBOX_PATH_VALIDATIONKIT)/ \
    115                $$(foreach inst, $$(VBOX_VALIDATIONKIT_INSTALLS), \
    116                         $$(filter $(PATH_STAGE)/$(INST_VALIDATIONKIT)%, $$($$(inst)_2_STAGE_TARGETS)))
     115                $$(foreach inst, $$(VBOX_VALIDATIONKIT_INSTALLS), \
     116                $$(filter $(PATH_STAGE)/$(INST_VALIDATIONKIT)%, $$($$(inst)_2_STAGE_TARGETS)))
    117117        $(call MSG_L1,Packing the Test Suite $@)
    118118        $(QUIET)$(RM) -f $@
     
    175175 if1of ($(KBUILD_TARGET_ARCH), amd64 x86)
    176176  VBOX_VALIDATIONKIT_FILESPEC += \
    177         $(VBOX_PATH_VALIDATIONKIT)/bootsectors/bootsector-pae.img \
    178         $(VBOX_PATH_VALIDATIONKIT)/bootsectors/bootsector-shutdown.img
     177        $(VBOX_PATH_VALIDATIONKIT)/bootsectors/bootsector-pae.img \
     178        $(VBOX_PATH_VALIDATIONKIT)/bootsectors/bootsector-shutdown.img
    179179 endif
    180180endif
     
    220220endef
    221221
    222 TMP_SUFF_EXE=.exe
     222TMP_SUFF_EXE = .exe
    223223$(foreach os, os2 win,$(foreach arch, x86 amd64, \
    224224        $(eval $(def_vbox_validationkit_common_files)) \
    225225))
    226 TMP_SUFF_EXE=
     226TMP_SUFF_EXE =
    227227$(foreach os, darwin freebsd linux solaris,$(foreach arch, x86 amd64, \
    228228        $(eval $(def_vbox_validationkit_common_files)) \
     
    287287        $(VBOX_PATH_VALIDATIONKIT.win.amd64)/ntSetFreq.exe \
    288288        $(VBOX_PATH_VALIDATIONKIT.win.amd64)/ntTimeSources.exe
    289   # Disabled for now; does not work without WinMM.dll export verification files.
    290   #ifdef VBOX_WITH_AUDIO_VALIDATIONKIT
    291   # VBOX_VALIDATIONKIT_FILESPEC += \
    292   #     $(VBOX_PATH_VALIDATIONKIT.win.amd64)/ntPlayToneWaveX.exe
    293   #endif
     289 # Disabled for now; does not work without WinMM.dll export verification files.
     290 #ifdef VBOX_WITH_AUDIO_VALIDATIONKIT
     291 # VBOX_VALIDATIONKIT_FILESPEC += \
     292 #      $(VBOX_PATH_VALIDATIONKIT.win.amd64)/ntPlayToneWaveX.exe
     293 #endif
    294294endif
    295295ifdef VBOX_WITH_VALIDATIONKIT_PACKING.win.x86
     
    322322  VBOX_VALIDATIONKIT_FILESPEC_UNITTESTS += \
    323323        $(foreach whitelisted, $(VALKIT_UNITTESTS_WHITELIST_IPRT) $(VALKIT_UNITTESTS_WHITELIST_IPRT.$(os)), \
    324                 $$(wildcard $(VBOX_PATH_VALIDATIONKIT_UNITTESTS.$(os).$(arch))/$(whitelisted)$(TMP_SUFF_EXE)))
     324        $$(wildcard $(VBOX_PATH_VALIDATIONKIT_UNITTESTS.$(os).$(arch))/$(whitelisted)$(TMP_SUFF_EXE)))
    325325  # Unit tests which utilize parts of the Guest Additions.
    326326  VBOX_VALIDATIONKIT_FILESPEC_UNITTESTS += \
    327327        $(foreach whitelisted, $(VALKIT_UNITTESTS_WHITELIST_GUEST_ADDITIONS) $(VALKIT_UNITTESTS_WHITELIST_GUEST_ADDITIONS.$(os)), \
    328                 $$(wildcard $(VBOX_PATH_VALIDATIONKIT_UNITTESTS.$(os).$(arch))/$(whitelisted)$(TMP_SUFF_EXE)))
     328        $$(wildcard $(VBOX_PATH_VALIDATIONKIT_UNITTESTS.$(os).$(arch))/$(whitelisted)$(TMP_SUFF_EXE)))
    329329 endef
    330330
    331  TMP_SUFF_EXE=.exe
     331 TMP_SUFF_EXE = .exe
    332332 $(foreach os, win,$(foreach arch, x86 amd64, \
    333333        $(eval $(def_vbox_validationkit_unittests)) \
    334334 ))
    335  TMP_SUFF_EXE=
     335 TMP_SUFF_EXE =
    336336 $(foreach os, darwin freebsd linux solaris,$(foreach arch, x86 amd64, \
    337337        $(eval $(def_vbox_validationkit_unittests)) \
  • trunk/src/VBox/ValidationKit/bootsectors/Config.kmk

    r98103 r98418  
    5050
    5151if 0 # Adding as few as possible new properties.
    52 KBUILD_COMPILE_CATEGTORIES += C16
    53 PROPS_TOOLS        += C16TOOL
    54 PROPS_SINGLE       += C16TOOL C16OBJSUFF
    55 PROPS_ACCUMULATE_R += C16FLAGS C16DEFS
    56 PROPS_ACCUMULATE_L += C16INCS
     52 KBUILD_COMPILE_CATEGTORIES += C16
     53 PROPS_TOOLS       += C16TOOL
     54 PROPS_SINGLE      += C16TOOL C16OBJSUFF
     55 PROPS_ACCUMULATE_R += C16FLAGS C16DEFS
     56 PROPS_ACCUMULATE_L += C16INCS
    5757endif
    5858
     
    7070# The 16-bit code & data segment classes.
    7171if 1
    72 BS3KIT_CLASS_CODE16 = CODE
    73 BS3KIT_SEGNM_DATA16 =
    74 BS3KIT_CLASS_DATA16 = DATA
    75 BS3KIT_GRPNM_DATA16 = DGROUP
    76 BS3KIT_CLASS_BSS16 = BSS
     72 BS3KIT_CLASS_CODE16 = CODE
     73 BS3KIT_SEGNM_DATA16 =
     74 BS3KIT_CLASS_DATA16 = DATA
     75 BS3KIT_GRPNM_DATA16 = DGROUP
     76 BS3KIT_CLASS_BSS16 = BSS
    7777else
    78 BS3KIT_CLASS_CODE16 = BS3CLASS16CODE
    79 BS3KIT_SEGNM_DATA16 = BS3DATA16
    80 BS3KIT_CLASS_DATA16 = FAR_DATA
    81 BS3KIT_GRPNM_DATA16 = BS3DATA16_GROUP
    82 BS3KIT_CLASS_BSS16 = ???
     78 BS3KIT_CLASS_CODE16 = BS3CLASS16CODE
     79 BS3KIT_SEGNM_DATA16 = BS3DATA16
     80 BS3KIT_CLASS_DATA16 = FAR_DATA
     81 BS3KIT_GRPNM_DATA16 = BS3DATA16_GROUP
     82 BS3KIT_CLASS_BSS16 = ???
    8383endif
    8484
     
    115115# @param    3   The far function name.
    116116define def_Bs3KitGenNearStubSource
    117 $1_SOURCES += $$($1_0_OUTDIR)/stub$2.asm
    118 $1_CLEAN   += $$($1_0_OUTDIR)/stub$2.asm
    119 $$$$($1_0_OUTDIR)/stub$2.asm: $$(VBOX_PATH_BOOTSECTORS_SRC)/Config.kmk | $$$$(dir $$$$@)
     117 $1_SOURCES += $$($1_0_OUTDIR)/stub$2.asm
     118 $1_CLEAN  += $$($1_0_OUTDIR)/stub$2.asm
     119 $$$$($1_0_OUTDIR)/stub$2.asm: $$(VBOX_PATH_BOOTSECTORS_SRC)/Config.kmk | $$$$(dir $$$$@)
    120120        $(QUIET)$(APPEND) -tn $$@ \
    121121                '%include "bs3kit.mac"' \
     
    166166# @param    5   The parameter size in bytes.
    167167define def_Bs3KitGenFarStubSource
    168 $1_SOURCES += $$($1_0_OUTDIR)/stub_$2$3.asm
    169 $1_CLEAN   += $$($1_0_OUTDIR)/stub_$2$3.asm
    170 $$$$($1_0_OUTDIR)/stub_$2$3.asm: $$(VBOX_PATH_BOOTSECTORS_SRC)/Config.kmk | $$$$(dir $$$$@)
     168 $1_SOURCES += $$($1_0_OUTDIR)/stub_$2$3.asm
     169 $1_CLEAN  += $$($1_0_OUTDIR)/stub_$2$3.asm
     170 $$$$($1_0_OUTDIR)/stub_$2$3.asm: $$(VBOX_PATH_BOOTSECTORS_SRC)/Config.kmk | $$$$(dir $$$$@)
    171171        $(QUIET)$(APPEND) -tn $$@ \
    172172                '%include "bs3kit.mac"' \
     
    246246TOOL_VBoxNasm_COMPILE_AS_DEPORD =
    247247define TOOL_VBoxNasm_COMPILE_AS_CMDS
    248 ifdef TOOL_VBoxNasm_USE_KSUBMIT
     248 ifdef TOOL_VBoxNasm_USE_KSUBMIT
    249249        $(QUIET)kmk_builtin_kSubmit -C $(PATH_OUT_BASE) -- $(TOOL_VBoxNasm_AS)\
    250250                $(flags) $(addsuffix /,$(addprefix -i, $(incs))) $(addprefix -D, $(defs))\
     
    253253               -MD "$(dep)" -MP\
    254254                $(abspath $(source))
    255 else
     255 else
    256256        $(QUIET)$(REDIRECT) -C $(PATH_OUT_BASE) -- $(TOOL_VBoxNasm_AS)\
    257257                $(flags) $(addsuffix /,$(addprefix -i, $(incs))) $(addprefix -D, $(defs))\
     
    260260               -MD "$(dep)" -MP\
    261261                $(abspath $(source))
    262 endif
     262 endif
    263263        $(QUIET)$(VBOX_BS3KIT_KSUBMIT_OBJ_CONV) $(VBoxBs3ObjConverter_1_TARGET) "$(obj)"
    264264endef
     
    528528#
    529529define VBoxBs3KitImgSrcHandler_16bit_c
    530 local type := C
     530 local type := C
    531531 $(kb-src-one 2)
    532532endef
     
    534534C32TOOL = Bs3Ow32
    535535define VBoxBs3KitImgSrcHandler_32bit_c
    536 local type := C32
     536 local type := C32
    537537 $(kb-src-one 2)
    538538endef
    539539
    540540define VBoxBs3KitImgSrcHandler_64bit_c
    541 local type := C64
     541 local type := C64
    542542 $(kb-src-one 2)
    543543endef
     
    605605TEMPLATE_VBoxBS3KitImg_ASFLAGS      = -f obj -g $(BS3KIT_NASM_allow_64_bit) -w+orphan-labels
    606606TEMPLATE_VBoxBS3KitImg_ASDEFS       = ASM_FORMAT_OMF RT_NOINC_SEGMENTS __NASM__ ARCH_BITS=16 RT_ARCH_X86 ASM_MODEL_FAR_CODE \
    607         BS3CLASS16CODE=$(BS3KIT_CLASS_CODE16) BS3KIT_CLASS_DATA16=$(BS3KIT_CLASS_DATA16) \
    608          BS3KIT_GRPNM_DATA16=$(BS3KIT_GRPNM_DATA16) BS3KIT_CLASS_BSS16=$(BS3KIT_CLASS_BSS16)
     607        BS3CLASS16CODE=$(BS3KIT_CLASS_CODE16) BS3KIT_CLASS_DATA16=$(BS3KIT_CLASS_DATA16) \
     608        BS3KIT_GRPNM_DATA16=$(BS3KIT_GRPNM_DATA16) BS3KIT_CLASS_BSS16=$(BS3KIT_CLASS_BSS16)
    609609TEMPLATE_VBoxBS3KitImg_DEFS         = IN_BS3KIT
    610610TEMPLATE_VBoxBS3KitImg_DEFS.debug   = BS3_STRICT
     
    654654        debug $(BS3_OW_DBG_LDOPT) all \
    655655        option quiet, map, statics, verbose, symfile, start=_start, farcalls \
    656        disable 1014, 1080 \
     656        disable 1014, 1080 \
    657657        \
    658         output raw offset=0x10000 \
    659         order \
    660          clname BS3FLAT segaddr=0x0000 \
    661            segment BS3FLAT segaddr=0x0000 \
    662          clname $(BS3KIT_CLASS_CODE16) segaddr=0x1000 \
    663           segment BS3TEXT16 \
    664           segment BS3TEXT16_NEARSTUBS \
    665          segment BS3TEXT16_FARSTUBS \
    666           segment BS3TEXT16_END \
    667         clname BS3SYSTEM16 segaddr=0x2000 \
    668          segment BS3SYSTEM16 \
    669 $(if-expr "$(BS3KIT_SEGNM_DATA16)" == "", \
    670          clname DATA \
    671           segment BS3DATA16 segaddr=0x2900 \
    672           segment BS3DATA16_DATA \
    673           segment DATA \
    674           segment _DATA \
    675           segment BS3DATA16CONST \
    676           segment CONST \
    677           segment BS3DATA16CONST2 \
    678           segment CONST2 \
    679           segment STRINGS \
    680           segment BS3DATA16_END \
    681         clname BSS \
    682           segment BSS \
    683           segment _BSS \
    684           segment BS3DATA16_END \
    685          clname FAR_DATA \
    686          segment FAR_DATA \
    687 , \
    688          clname FAR_DATA \
    689           segment BS3DATA16 segaddr=0x2900 \
    690          segment FAR_DATA \
    691           segment BS3DATA16CONST \
    692           segment BS3DATA16CONST2 \
    693           segment BS3DATA16_DATA \
    694           segment BS3DATA16_END \
    695 ) \
    696           segment BS3DATA32 \
    697           segment BS3DATA32CONST \
    698           segment BS3DATA32CONST2 \
    699           segment BS3DATA32_DATA \
    700           segment BS3DATA32_BSS \
    701           segment BS3DATA32_END \
    702          \
    703           segment BS3DATA64 \
    704           segment BS3DATA64CONST \
    705           segment BS3DATA64_BSS \
    706           segment BS3DATA64_END \
    707         clname BS3CLASS16RMCODE \
    708           segment BS3RMCODE16_START \
    709           segment BS3RMCODE16 \
    710           segment BS3RMCODE16_END \
    711         clname BS3CLASS16X0CODE \
    712           segment BS3X0CODE16_START \
    713           segment BS3X0CODE16 \
    714           segment BS3X0CODE16_END \
    715         clname BS3CLASS16X1CODE \
    716           segment BS3X1CODE16_START \
    717           segment BS3X1CODE16 \
    718           segment BS3X1CODE16_END \
    719         clname BS3CLASS32CODE \
    720           segment BS3TEXT32_START \
    721           segment BS3TEXT32 \
    722           segment BS3TEXT32_END \
    723         clname BS3CLASSSEPARATE32AND64BITCODE \
    724           segment BS3SEPARATE32AND64BITCODE \
    725           segment BS3SEPARATE32AND64BITCODE_END \
    726         clname BS3CLASS64CODE \
    727           segment BS3TEXT64_START \
    728           segment BS3TEXT64 \
    729           segment BS3TEXT64_END
     658        output raw offset=0x10000 \
     659        order \
     660        clname BS3FLAT segaddr=0x0000 \
     661        segment BS3FLAT segaddr=0x0000 \
     662        clname $(BS3KIT_CLASS_CODE16) segaddr=0x1000 \
     663        segment BS3TEXT16 \
     664        segment BS3TEXT16_NEARSTUBS \
     665        segment BS3TEXT16_FARSTUBS \
     666        segment BS3TEXT16_END \
     667        clname BS3SYSTEM16 segaddr=0x2000 \
     668        segment BS3SYSTEM16 \
     669        $(if-expr "$(BS3KIT_SEGNM_DATA16)" == "", \
     670        clname DATA \
     671        segment BS3DATA16 segaddr=0x2900 \
     672        segment BS3DATA16_DATA \
     673        segment DATA \
     674        segment _DATA \
     675        segment BS3DATA16CONST \
     676        segment CONST \
     677        segment BS3DATA16CONST2 \
     678        segment CONST2 \
     679        segment STRINGS \
     680        segment BS3DATA16_END \
     681        clname BSS \
     682        segment BSS \
     683        segment _BSS \
     684        segment BS3DATA16_END \
     685        clname FAR_DATA \
     686        segment FAR_DATA \
     687        , \
     688        clname FAR_DATA \
     689        segment BS3DATA16 segaddr=0x2900 \
     690        segment FAR_DATA \
     691        segment BS3DATA16CONST \
     692        segment BS3DATA16CONST2 \
     693        segment BS3DATA16_DATA \
     694        segment BS3DATA16_END \
     695        ) \
     696        segment BS3DATA32 \
     697        segment BS3DATA32CONST \
     698        segment BS3DATA32CONST2 \
     699        segment BS3DATA32_DATA \
     700        segment BS3DATA32_BSS \
     701        segment BS3DATA32_END \
     702        \
     703        segment BS3DATA64 \
     704        segment BS3DATA64CONST \
     705        segment BS3DATA64_BSS \
     706        segment BS3DATA64_END \
     707        clname BS3CLASS16RMCODE \
     708        segment BS3RMCODE16_START \
     709        segment BS3RMCODE16 \
     710        segment BS3RMCODE16_END \
     711        clname BS3CLASS16X0CODE \
     712        segment BS3X0CODE16_START \
     713        segment BS3X0CODE16 \
     714        segment BS3X0CODE16_END \
     715        clname BS3CLASS16X1CODE \
     716        segment BS3X1CODE16_START \
     717        segment BS3X1CODE16 \
     718        segment BS3X1CODE16_END \
     719        clname BS3CLASS32CODE \
     720        segment BS3TEXT32_START \
     721        segment BS3TEXT32 \
     722        segment BS3TEXT32_END \
     723        clname BS3CLASSSEPARATE32AND64BITCODE \
     724        segment BS3SEPARATE32AND64BITCODE \
     725        segment BS3SEPARATE32AND64BITCODE_END \
     726        clname BS3CLASS64CODE \
     727        segment BS3TEXT64_START \
     728        segment BS3TEXT64 \
     729        segment BS3TEXT64_END
    730730
    731731TEMPLATE_VBoxBS3KitImg_LNK_DEPS = \
    732732        $(bs3-bootsector_1_TARGET) \
    733733        $(VBoxBs3Linker_1_TARGET)
    734 TEMPLATE_VBoxBS3KitImg_POST_CMDS = $(if $(eq $(tool_do),LINK_LIBRARY)\
     734TEMPLATE_VBoxBS3KitImg_POST_CMDS = $(if $(eq $(tool_do),LINK_LIBRARY) \
    735735        ,,$(QUIET)$(MV_EXT) -f -- "$(out)" "$(out).tmp" \
    736736        $$(NLTAB)$(QUIET)$(VBoxBs3Linker_1_TARGET) -o $(out) $(bs3-bootsector_1_TARGET) $(out).tmp \
     
    743743        $(PATH_OBJ)/bs3kit-common-32/bs3kit-common-32.lib \
    744744        $(PATH_OBJ)/bs3kit-common-64/bs3kit-common-64.lib \
    745        \
     745        \
    746746        $(PATH_OBJ)/bs3kit-rm/bs3kit-rm.lib \
    747747        $(PATH_OBJ)/bs3kit-pe16/bs3kit-pe16.lib \
     
    776776TEMPLATE_VBoxBS3KitImg32_ASFLAGS      = -f obj -g $(BS3KIT_NASM_allow_64_bit) -w+orphan-labels
    777777TEMPLATE_VBoxBS3KitImg32_ASDEFS       = ASM_FORMAT_OMF RT_NOINC_SEGMENTS __NASM__ \
    778         BS3CLASS16CODE=$(BS3KIT_CLASS_CODE16) BS3KIT_CLASS_DATA16=$(BS3KIT_CLASS_DATA16) \
    779          BS3KIT_GRPNM_DATA16=$(BS3KIT_GRPNM_DATA16) BS3KIT_CLASS_BSS16=$(BS3KIT_CLASS_BSS16)
     778        BS3CLASS16CODE=$(BS3KIT_CLASS_CODE16) BS3KIT_CLASS_DATA16=$(BS3KIT_CLASS_DATA16) \
     779        BS3KIT_GRPNM_DATA16=$(BS3KIT_GRPNM_DATA16) BS3KIT_CLASS_BSS16=$(BS3KIT_CLASS_BSS16)
    780780TEMPLATE_VBoxBS3KitImg32_DEFS         = ARCH_BITS=32 IN_BS3KIT
    781781TEMPLATE_VBoxBS3KitImg32_DEFS.debug   = BS3_STRICT
     
    799799TEMPLATE_VBoxBS3KitImg64_ASFLAGS      = -f obj -g $(BS3KIT_NASM_allow_64_bit) -w+orphan-labels
    800800TEMPLATE_VBoxBS3KitImg64_ASDEFS       = ASM_FORMAT_OMF ASM_CALL64_MSC RT_NOINC_SEGMENTS __NASM__ \
    801         BS3CLASS16CODE=$(BS3KIT_CLASS_CODE16) BS3KIT_CLASS_DATA16=$(BS3KIT_CLASS_DATA16) \
    802          BS3KIT_GRPNM_DATA16=$(BS3KIT_GRPNM_DATA16) BS3KIT_CLASS_BSS16=$(BS3KIT_CLASS_BSS16)
     801        BS3CLASS16CODE=$(BS3KIT_CLASS_CODE16) BS3KIT_CLASS_DATA16=$(BS3KIT_CLASS_DATA16) \
     802        BS3KIT_GRPNM_DATA16=$(BS3KIT_GRPNM_DATA16) BS3KIT_CLASS_BSS16=$(BS3KIT_CLASS_BSS16)
    803803TEMPLATE_VBoxBS3KitImg64_DEFS         = IN_BS3KIT ARCH_BITS=64
    804804TEMPLATE_VBoxBS3KitImg64_DEFS.debug   = BS3_STRICT
     
    818818 # Note! -mx32 would be exactly what we needed here, however it causes internal compiler errors with 4.8.4 on gentoo.
    819819 TEMPLATE_VBoxBS3KitImg64_CFLAGS      = -m64 -maccumulate-outgoing-args -g -Os -fno-omit-frame-pointer $(VBOX_GCC_fno-stack-protector) $(VBOX_GCC_WARN_PEDANTIC_C) \
    820     -msoft-float -fno-exceptions -mno-sse -mno-mmx -mno-sse2 -mno-3dnow $(VBOX_GCC_fno-stack-protector)
     820        -msoft-float -fno-exceptions -mno-sse -mno-mmx -mno-sse2 -mno-3dnow $(VBOX_GCC_fno-stack-protector)
    821821 TEMPLATE_VBoxBS3KitImg64_CXXFLAGS    = -m64 -maccumulate-outgoing-args -g -Os -fno-omit-frame-pointer $(VBOX_GCC_fno-stack-protector) $(VBOX_GCC_WARN_PEDANTIC_CXX) \
    822     -msoft-float -fno-exceptions -mno-sse -mno-mmx -mno-sse2 -mno-3dnow $(VBOX_GCC_fno-stack-protector)
     822        -msoft-float -fno-exceptions -mno-sse -mno-mmx -mno-sse2 -mno-3dnow $(VBOX_GCC_fno-stack-protector)
    823823endif
    824824TEMPLATE_VBoxBS3KitImg64_LDTOOL       = VBoxBsUnusedLd
     
    835835TEMPLATE_VBoxBS3KitBS_ASFLAGS         = -f bin --mapfile
    836836TEMPLATE_VBoxBS3KitBS_ASDEFS          = ASM_FORMAT_BIN RT_NOINC_SEGMENTS ARCH_BITS=16 __YASM__ \
    837         BS3CLASS16CODE=$(BS3KIT_CLASS_CODE16) BS3KIT_CLASS_DATA16=$(BS3KIT_CLASS_DATA16) \
    838          BS3KIT_GRPNM_DATA16=$(BS3KIT_GRPNM_DATA16) BS3KIT_CLASS_BSS16=$(BS3KIT_CLASS_BSS16)
     837        BS3CLASS16CODE=$(BS3KIT_CLASS_CODE16) BS3KIT_CLASS_DATA16=$(BS3KIT_CLASS_DATA16) \
     838        BS3KIT_GRPNM_DATA16=$(BS3KIT_GRPNM_DATA16) BS3KIT_CLASS_BSS16=$(BS3KIT_CLASS_BSS16)
    839839TEMPLATE_VBoxBS3KitBS_INCS            = $(VBOX_PATH_BS3KIT_SRC) .
    840840TEMPLATE_VBoxBS3KitBS_LDTOOL          = VBoxBsCpLd
     
    856856        debug $(BS3_OW_DBG_LDOPT) all \
    857857        option quiet, map, statics, verbose, symfile \
    858        disable 1080 \
    859         order \
    860          clname $(BS3KIT_CLASS_CODE16) \
    861           segment BEGTEXT \
    862           segment BS3TEXT16 \
    863           segment _TEXT \
    864           segment BS3TEXT16_NEARSTUBS \
    865           segment BS3TEXT16_FARSTUBS \
    866           segment BS3TEXT16_END \
    867         clname BS3SYSTEM16 \
    868          segment BS3SYSTEM16 \
    869          \
    870          clname BEGDATA \
    871           segment _NULL \
    872           segment _AFTERNULL \
    873          clname DATA \
    874 $(if-expr "$(BS3KIT_SEGNM_DATA16)" == "", \
    875           segment BS3DATA16 \
    876           segment BS3DATA16CONST \
    877           segment CONST \
    878           segment BS3DATA16CONST2 \
    879           segment CONST2 \
    880 ,\
    881           segment CONST \
    882           segment CONST2 \
    883 ) \
    884           segment _DATA \
    885           segment XIB \
    886           segment XI \
    887           segment XIE \
    888           segment YIB \
    889           segment YI \
    890           segment YIE \
    891           segment STRINGS \
    892 $(if-expr "$(BS3KIT_SEGNM_DATA16)" == "", \
    893           segment BS3DATA16_DATA \
    894 ,) \
    895           segment DATA \
    896          clname BSS \
    897           segment _BSS \
    898           segment BSS \
    899           segment BS3DATA16_END \
    900          clname STACK \
    901           segment STACK \
    902          \
    903          clname FAR_DATA \
    904 $(if-expr "$(BS3KIT_SEGNM_DATA16)" != "", \
    905           segment BS3DATA16 \
    906           segment BS3DATA16_DATA \
    907           segment BS3DATA16CONST \
    908           segment BS3DATA16CONST2 \
    909           segment FAR_DATA \
    910           segment BS3DATA16_END \
    911 ,\
    912           segment FAR_DATA \
    913 )\
    914           segment BS3DATA32 \
    915           segment BS3DATA32CONST \
    916           segment BS3DATA32CONST2 \
    917           segment BS3DATA32_DATA \
    918           segment BS3DATA32_BSS \
    919           segment BS3DATA32_END \
    920          \
    921           segment BS3DATA64 \
    922           segment BS3DATA64CONST \
    923           segment BS3DATA64_BSS \
    924           segment BS3DATA64_END \
    925         clname BS3CLASS16RMCODE \
    926           segment BS3RMCODE16_START \
    927           segment BS3RMCODE16 \
    928           segment BS3RMCODE16_END \
    929         clname BS3CLASS16X0CODE \
    930           segment BS3X0CODE16_START \
    931           segment BS3X0CODE16 \
    932           segment BS3X0CODE16_END \
    933         clname BS3CLASS16X1CODE \
    934           segment BS3X1CODE16_START \
    935           segment BS3X1CODE16 \
    936           segment BS3X1CODE16_END \
    937         clname BS3CLASS32CODE \
    938           segment BS3TEXT32 \
    939           segment BS3TEXT32_END \
    940         clname BS3CLASSSEPARATE32AND64BITCODE \
    941           segment BS3SEPARATE32AND64BITCODE \
    942           segment BS3SEPARATE32AND64BITCODE_END \
    943         clname BS3CLASS64CODE \
    944           segment BS3TEXT64 \
    945           segment BS3TEXT64_END
     858        disable 1080 \
     859        order \
     860        clname $(BS3KIT_CLASS_CODE16) \
     861        segment BEGTEXT \
     862        segment BS3TEXT16 \
     863        segment _TEXT \
     864        segment BS3TEXT16_NEARSTUBS \
     865        segment BS3TEXT16_FARSTUBS \
     866        segment BS3TEXT16_END \
     867        clname BS3SYSTEM16 \
     868        segment BS3SYSTEM16 \
     869        \
     870        clname BEGDATA \
     871        segment _NULL \
     872        segment _AFTERNULL \
     873        clname DATA \
     874        $(if-expr "$(BS3KIT_SEGNM_DATA16)" == "", \
     875        segment BS3DATA16 \
     876        segment BS3DATA16CONST \
     877        segment CONST \
     878        segment BS3DATA16CONST2 \
     879        segment CONST2 \
     880        , \
     881        segment CONST \
     882        segment CONST2 \
     883        ) \
     884        segment _DATA \
     885        segment XIB \
     886        segment XI \
     887        segment XIE \
     888        segment YIB \
     889        segment YI \
     890        segment YIE \
     891        segment STRINGS \
     892        $(if-expr "$(BS3KIT_SEGNM_DATA16)" == "", \
     893        segment BS3DATA16_DATA \
     894        ,) \
     895        segment DATA \
     896        clname BSS \
     897        segment _BSS \
     898        segment BSS \
     899        segment BS3DATA16_END \
     900        clname STACK \
     901        segment STACK \
     902        \
     903        clname FAR_DATA \
     904        $(if-expr "$(BS3KIT_SEGNM_DATA16)" != "", \
     905        segment BS3DATA16 \
     906        segment BS3DATA16_DATA \
     907        segment BS3DATA16CONST \
     908        segment BS3DATA16CONST2 \
     909        segment FAR_DATA \
     910        segment BS3DATA16_END \
     911        , \
     912        segment FAR_DATA \
     913        ) \
     914        segment BS3DATA32 \
     915        segment BS3DATA32CONST \
     916        segment BS3DATA32CONST2 \
     917        segment BS3DATA32_DATA \
     918        segment BS3DATA32_BSS \
     919        segment BS3DATA32_END \
     920        \
     921        segment BS3DATA64 \
     922        segment BS3DATA64CONST \
     923        segment BS3DATA64_BSS \
     924        segment BS3DATA64_END \
     925        clname BS3CLASS16RMCODE \
     926        segment BS3RMCODE16_START \
     927        segment BS3RMCODE16 \
     928        segment BS3RMCODE16_END \
     929        clname BS3CLASS16X0CODE \
     930        segment BS3X0CODE16_START \
     931        segment BS3X0CODE16 \
     932        segment BS3X0CODE16_END \
     933        clname BS3CLASS16X1CODE \
     934        segment BS3X1CODE16_START \
     935        segment BS3X1CODE16 \
     936        segment BS3X1CODE16_END \
     937        clname BS3CLASS32CODE \
     938        segment BS3TEXT32 \
     939        segment BS3TEXT32_END \
     940        clname BS3CLASSSEPARATE32AND64BITCODE \
     941        segment BS3SEPARATE32AND64BITCODE \
     942        segment BS3SEPARATE32AND64BITCODE_END \
     943        clname BS3CLASS64CODE \
     944        segment BS3TEXT64 \
     945        segment BS3TEXT64_END
    946946#        clname BS3FLAT segaddr=0x0000 \
    947947#          segment BS3FLAT segaddr=0x0000
  • trunk/src/VBox/ValidationKit/bootsectors/Makefile.kmk

    r98103 r98418  
    167167
    168168ifeq ($(USERNAME),birdxx)
    169  if1of ($(KBUILD_HOST).$(KBUILD_HOST_ARCH),win.amd64)
    170 #
    171 # Generated instruction tests (work in progress).
    172 #
    173 
    174 VBOX_PATH_VBINSTST = $(PATH_ROOT)/src/VBox/VMM/testcase/Instructions
    175 VBOX_VBINSTST_GEN = $(VBOX_PATH_VBINSTST)/InstructionTestGen.py
    176 VBOX_BOOTSECTOR2_VBINSTST_AMD64_GEN  = $(VBOX_BLD_PYTHON) $(VBOX_VBINSTST_GEN) \
    177                 --split 3 --target bs2-r0-64 --output-base $(bootsectors_0_OUTDIR)/VBInsTst-64 --test-size tiny
    178 VBOX_BOOTSECTOR2_VBINSTST_AMD64_FILES = $(shell $(VBOX_BOOTSECTOR2_VBINSTST_AMD64_GEN) --makefile-mode)
    179 
    180 #$$(bootsectors_0_OUTDIR)/VBInsTst.ts + $$(VBOX_BOOTSECTOR2_VBINSTST_AMD64_FILES): $(VBOX_VBINSTST_GEN) | $$(dir $$@)
    181 #       $(VBOX_BOOTSECTOR2_VBINSTST_AMD64_GEN)
    182 #       $(APPEND) -t $@
    183 #
    184 #bootsectors_SOURCES += $(bootsectors_0_OUTDIR)/bootsector2-vbinstst-1.img
    185 #bootsectors_CLEAN += $(VBOX_BOOTSECTOR2_VBINSTST_AMD64_FILES)
    186 #
    187 #$$(bootsectors_0_OUTDIR)/bootsector2-vbinstst-1.img: \
    188 #               $(PATH_SUB_CURRENT)/bootsector2-vbinstst-64-1.asm \
    189 #               $$(bootsectors_0_OUTDIR)/VBInsTst-64.asm
    190 #       $(TOOL_$(VBOX_ASTOOL)_AS) -f bin -D ASM_FORMAT_BIN -I $(dir $@) -I $(PATH_ROOT)/include -I $(VBOX_PATH_VBINSTST) -o $@ -L nasm -l [email protected] $<
    191 
    192 MISCBINS += bootsector2-vbinstst-kernel
    193 bootsector2-vbinstst-kernel_TEMPLATE = VBoxBsTestImg
    194 bootsector2-vbinstst-kernel_SOURCES = \
    195         bootsector2-vbinstst-kernel.asm
    196 
    197 
    198 MISCBINS += bootsector2-vbinstst-64-1
    199 bootsector2-vbinstst-64-1_TEMPLATE = VBoxBsTestImg
    200 bootsector2-vbinstst-64-1_DEFS = \
    201         BS2_BIG_IMAGE_LM64 \
    202         BS2_BIG_IMAGE_GEN_SOURCE_FILE=bs2-vbinstst-64-1.asm \
    203         BS2_BIG_IMAGE_GEN_TEST_NAME=\"bs2-vbinstst-64-1\"
    204 bootsector2-vbinstst-64-1_INCS = $(bootsector2-vbinstst-64-1_0_OUTDIR)/
    205 bootsector2-vbinstst-64-1_SOURCES = \
    206         bootsector2-vbinstst-kernel.asm \
    207         bootsector2-vbinstst-big-template.asm
    208 bootsector2-vbinstst-64-1_INTERMEDIATES = \
    209         $(bootsector2-vbinstst-64-1_0_OUTDIR)/bs2-vbinstst-64-1.asm
    210 bootsector2-vbinstst-64-1_CLEAN = \
    211         $(bootsector2-vbinstst-64-1_0_OUTDIR)/bs2-vbinstst-64-1.asm
    212 
    213 $$(bootsector2-vbinstst-64-1_0_OUTDIR)/bs2-vbinstst-64-1.asm: $(VBOX_VBINSTST_GEN) | $$(dir $$@)
     169 if1of ($(KBUILD_HOST).$(KBUILD_HOST_ARCH), win.amd64)
     170  #
     171  # Generated instruction tests (work in progress).
     172  #
     173
     174  VBOX_PATH_VBINSTST = $(PATH_ROOT)/src/VBox/VMM/testcase/Instructions
     175  VBOX_VBINSTST_GEN = $(VBOX_PATH_VBINSTST)/InstructionTestGen.py
     176  VBOX_BOOTSECTOR2_VBINSTST_AMD64_GEN = $(VBOX_BLD_PYTHON) $(VBOX_VBINSTST_GEN) \
     177        --split 3 --target bs2-r0-64 --output-base $(bootsectors_0_OUTDIR)/VBInsTst-64 --test-size tiny
     178  VBOX_BOOTSECTOR2_VBINSTST_AMD64_FILES = $(shell $(VBOX_BOOTSECTOR2_VBINSTST_AMD64_GEN) --makefile-mode)
     179
     180  #$$(bootsectors_0_OUTDIR)/VBInsTst.ts + $$(VBOX_BOOTSECTOR2_VBINSTST_AMD64_FILES): $(VBOX_VBINSTST_GEN) | $$(dir $$@)
     181  #     $(VBOX_BOOTSECTOR2_VBINSTST_AMD64_GEN)
     182  #     $(APPEND) -t $@
     183  #
     184  #bootsectors_SOURCES += $(bootsectors_0_OUTDIR)/bootsector2-vbinstst-1.img
     185  #bootsectors_CLEAN += $(VBOX_BOOTSECTOR2_VBINSTST_AMD64_FILES)
     186  #
     187  #$$(bootsectors_0_OUTDIR)/bootsector2-vbinstst-1.img: \
     188  #             $(PATH_SUB_CURRENT)/bootsector2-vbinstst-64-1.asm \
     189  #                     $$(bootsectors_0_OUTDIR)/VBInsTst-64.asm
     190  #     $(TOOL_$(VBOX_ASTOOL)_AS) -f bin -D ASM_FORMAT_BIN -I $(dir $@) -I $(PATH_ROOT)/include -I $(VBOX_PATH_VBINSTST) -o $@ -L nasm -l [email protected] $<
     191
     192  MISCBINS += bootsector2-vbinstst-kernel
     193  bootsector2-vbinstst-kernel_TEMPLATE = VBoxBsTestImg
     194  bootsector2-vbinstst-kernel_SOURCES = \
     195        bootsector2-vbinstst-kernel.asm
     196
     197
     198  MISCBINS += bootsector2-vbinstst-64-1
     199  bootsector2-vbinstst-64-1_TEMPLATE = VBoxBsTestImg
     200  bootsector2-vbinstst-64-1_DEFS = \
     201        BS2_BIG_IMAGE_LM64 \
     202        BS2_BIG_IMAGE_GEN_SOURCE_FILE=bs2-vbinstst-64-1.asm \
     203        BS2_BIG_IMAGE_GEN_TEST_NAME=\"bs2-vbinstst-64-1\"
     204  bootsector2-vbinstst-64-1_INCS = $(bootsector2-vbinstst-64-1_0_OUTDIR)/
     205  bootsector2-vbinstst-64-1_SOURCES = \
     206        bootsector2-vbinstst-kernel.asm \
     207        bootsector2-vbinstst-big-template.asm
     208  bootsector2-vbinstst-64-1_INTERMEDIATES = \
     209        $(bootsector2-vbinstst-64-1_0_OUTDIR)/bs2-vbinstst-64-1.asm
     210  bootsector2-vbinstst-64-1_CLEAN = \
     211        $(bootsector2-vbinstst-64-1_0_OUTDIR)/bs2-vbinstst-64-1.asm
     212
     213  $$(bootsector2-vbinstst-64-1_0_OUTDIR)/bs2-vbinstst-64-1.asm: $(VBOX_VBINSTST_GEN) | $$(dir $$@)
    214214        $(REDIRECT) -0 /dev/null -- $(VBOX_BLD_PYTHON) $(VBOX_VBINSTST_GEN) --target bs2-r0-64-big --output-base $(basename $@) --test-size medium
    215215
    216 MISCBINS += bootsector2-vbinstst-32-1
    217 bootsector2-vbinstst-32-1_TEMPLATE = VBoxBsTestImg
    218 bootsector2-vbinstst-32-1_DEFS = \
    219         BS2_BIG_IMAGE_PP32 \
    220         BS2_BIG_IMAGE_GEN_SOURCE_FILE=bs2-vbinstst-32-1.asm \
    221         BS2_BIG_IMAGE_GEN_TEST_NAME=\"bs2-vbinstst-32-1\"
    222 bootsector2-vbinstst-32-1_INCS = $(bootsector2-vbinstst-32-1_0_OUTDIR)/
    223 bootsector2-vbinstst-32-1_SOURCES = \
    224         bootsector2-vbinstst-kernel.asm \
    225         bootsector2-vbinstst-big-template.asm
    226 bootsector2-vbinstst-32-1_INTERMEDIATES = \
    227         $(bootsector2-vbinstst-32-1_0_OUTDIR)/bs2-vbinstst-32-1.asm
    228 bootsector2-vbinstst-32-1_CLEAN = \
    229         $(bootsector2-vbinstst-32-1_0_OUTDIR)/bs2-vbinstst-32-1.asm
    230 
    231 $$(bootsector2-vbinstst-32-1_0_OUTDIR)/bs2-vbinstst-32-1.asm: $(VBOX_VBINSTST_GEN) | $$(dir $$@)
     216  MISCBINS += bootsector2-vbinstst-32-1
     217  bootsector2-vbinstst-32-1_TEMPLATE = VBoxBsTestImg
     218  bootsector2-vbinstst-32-1_DEFS = \
     219        BS2_BIG_IMAGE_PP32 \
     220        BS2_BIG_IMAGE_GEN_SOURCE_FILE=bs2-vbinstst-32-1.asm \
     221        BS2_BIG_IMAGE_GEN_TEST_NAME=\"bs2-vbinstst-32-1\"
     222  bootsector2-vbinstst-32-1_INCS = $(bootsector2-vbinstst-32-1_0_OUTDIR)/
     223  bootsector2-vbinstst-32-1_SOURCES = \
     224        bootsector2-vbinstst-kernel.asm \
     225        bootsector2-vbinstst-big-template.asm
     226  bootsector2-vbinstst-32-1_INTERMEDIATES = \
     227        $(bootsector2-vbinstst-32-1_0_OUTDIR)/bs2-vbinstst-32-1.asm
     228  bootsector2-vbinstst-32-1_CLEAN = \
     229        $(bootsector2-vbinstst-32-1_0_OUTDIR)/bs2-vbinstst-32-1.asm
     230
     231  $$(bootsector2-vbinstst-32-1_0_OUTDIR)/bs2-vbinstst-32-1.asm: $(VBOX_VBINSTST_GEN) | $$(dir $$@)
    232232        $(REDIRECT) -0 /dev/null -- $(VBOX_BLD_PYTHON) $(VBOX_VBINSTST_GEN) --target bs2-r0-32-big --output-base $(basename $@) --test-size medium
    233233
     
    237237
    238238ifdef VBOX_WITH_BS3KIT
    239 #
    240 # Bs3kit
    241 #
    242 
    243 #
    244 # APIC
    245 #
    246 MISCBINS += bs3-apic-1
    247 bs3-apic-1_TEMPLATE = VBoxBS3KitImg
    248 bs3-apic-1_SOURCES = \
    249         bs3kit/bs3-first-rm.asm \
    250         bs3-apic-1.c \
    251         bs3-apic-1-32.c32
    252 
    253 
    254 # CPU basics #2 (first being bootsector2-cpu-basic-1).
    255 MISCBINS += bs3-cpu-basic-2
    256 bs3-cpu-basic-2_TEMPLATE = VBoxBS3KitImg
    257 bs3-cpu-basic-2_INCS = .
    258 bs3-cpu-basic-2_DEFS  = BS3_CMN_INSTANTIATE_FILE1=bs3-cpu-basic-2-template.c
    259 bs3-cpu-basic-2_DEFS += BS3_MODE_INSTANTIATE_FILE1=bs3-cpu-basic-2-template.c
    260 bs3-cpu-basic-2_SOURCES = \
    261         bs3kit/bs3-first-rm.asm \
    262         bs3-cpu-basic-2.c \
    263         bs3-cpu-basic-2-x0.c \
    264         bs3-cpu-basic-2-32.c32 \
    265         bs3-cpu-basic-2-pf.c32 \
    266         bs3-cpu-basic-2-asm.asm \
    267        bs3kit/bs3-cmn-instantiate-x0.c16 \
    268        bs3kit/bs3-cmn-instantiate.c32 \
    269        bs3kit/bs3-cmn-instantiate.c64
    270 bs3-cpu-basic-2-template.o:: \
    271         $$(bs3-cpu-basic-2_0_OUTDIR)/bs3kit/bs3-cmn-instantiate-x0.o16 \
    272         $$(bs3-cpu-basic-2_0_OUTDIR)/bs3kit/bs3-cmn-instantiate.o32 \
    273         $$(bs3-cpu-basic-2_0_OUTDIR)/bs3kit/bs3-cmn-instantiate.o64 \
    274         $$(bs3-cpu-basic-2_0_OUTDIR)/bs3-cpu-basic-2-asm.o16
    275 
    276 #
    277 # CPU weird stuff #1.
    278 #
    279 MISCBINS += bs3-cpu-weird-1
    280 bs3-cpu-weird-1_TEMPLATE = VBoxBS3KitImg
    281 bs3-cpu-weird-1_INCS = .
    282 bs3-cpu-weird-1_SOURCES = \
    283         bs3kit/bs3-first-rm.asm \
    284         bs3-cpu-weird-1.c \
    285         bs3-cpu-weird-1-x0.c \
    286         bs3-cpu-weird-1-asm.asm
    287 
    288 #
    289 # 64-bit CPU state #1.
    290 #
    291 MISCBINS += bs3-cpu-state64-1
    292 bs3-cpu-state64-1_TEMPLATE = VBoxBS3KitImg
    293 bs3-cpu-state64-1_INCS = .
    294 bs3-cpu-state64-1_SOURCES = \
    295         bs3kit/bs3-first-init-all-lm64.asm \
    296         bs3-cpu-state64-1.c64 \
    297         bs3-cpu-state64-1-asm.asm
    298 
    299 #
    300 # FPU state corruption checker.
    301 #
    302 MISCBINS += bs3-fpustate-1
    303 bs3-fpustate-1_TEMPLATE = VBoxBS3KitImg
    304 bs3-fpustate-1_INCS = .
    305 bs3-fpustate-1_DEFS  = BS3_CMN_INSTANTIATE_FILE1=bs3-fpustate-1-template.c
    306 bs3-fpustate-1_DEFS += BS3_MODE_INSTANTIATE_FILE1=bs3-fpustate-1-template.c
    307 bs3-fpustate-1_SOURCES = \
    308         bs3kit/bs3-first-rm.asm \
    309         bs3-fpustate-1.c \
    310        bs3kit/bs3-cmn-instantiate.c16 \
    311        bs3kit/bs3-cmn-instantiate.c32 \
    312        bs3kit/bs3-cmn-instantiate.c64 \
    313         bs3-fpustate-1-asm.asm
    314 bs3-fpustate-1-template.o:: \
    315         $$(bs3-fpustate-1_0_OUTDIR)/bs3kit/bs3-cmn-instantiate.o16 \
    316         $$(bs3-fpustate-1_0_OUTDIR)/bs3kit/bs3-cmn-instantiate.o32 \
    317         $$(bs3-fpustate-1_0_OUTDIR)/bs3kit/bs3-cmn-instantiate.o64 \
    318         $$(bs3-fpustate-1_0_OUTDIR)/bs3-fpustate-1-asm.o16
    319 
    320 #
    321 # CPU instruction decoding experiments.
    322 #
    323 MISCBINS += bs3-cpu-decoding-1
    324 bs3-cpu-decoding-1_TEMPLATE = VBoxBS3KitImg
    325 bs3-cpu-decoding-1_INCS = .
    326 bs3-cpu-decoding-1_DEFS  = BS3_CMN_INSTANTIATE_FILE1=bs3-cpu-decoding-1-template.c
    327 bs3-cpu-decoding-1_DEFS += BS3_MODE_INSTANTIATE_FILE1=bs3-cpu-decoding-1-template.c
    328 bs3-cpu-decoding-1_SOURCES = \
    329         bs3kit/bs3-first-init-all-pp32.asm \
    330         bs3-cpu-decoding-1.c32 \
    331         bs3-cpu-decoding-1-asm.asm
    332 #       bs3kit/bs3-cmn-instantiate.c16 \
    333 #       bs3kit/bs3-cmn-instantiate.c32 \
    334 #       bs3kit/bs3-cmn-instantiate.c64
    335 bs3-cpu-decoding-1-template.o:: \
    336         $$(bs3-cpu-decoding-1_0_OUTDIR)/bs3-cpu-decoding-1-asm.o16
    337 #       $$(bs3-cpu-decoding-1_0_OUTDIR)/bs3kit/bs3-cmn-instantiate.o16 \
    338 #       $$(bs3-cpu-decoding-1_0_OUTDIR)/bs3kit/bs3-cmn-instantiate.o32 \
    339 #       $$(bs3-cpu-decoding-1_0_OUTDIR)/bs3kit/bs3-cmn-instantiate.o64 \
    340 
    341 
    342 #
    343 # CPU instructions #2 (first being bootsector2-cpu-instr-1).
    344 #
    345 MISCBINS += bs3-cpu-instr-2
    346 bs3-cpu-instr-2_TEMPLATE = VBoxBS3KitImg
    347 bs3-cpu-instr-2_INCS = .
    348 bs3-cpu-instr-2_DEFS  = BS3_CMN_INSTANTIATE_FILE1=bs3-cpu-instr-2-template.c
    349 bs3-cpu-instr-2_DEFS += BS3_MODE_INSTANTIATE_FILE1=bs3-cpu-instr-2-template.c
    350 bs3-cpu-instr-2_SOURCES = \
    351         bs3kit/bs3-first-rm.asm \
    352         bs3-cpu-instr-2.c \
    353         bs3-cpu-instr-2-asm.asm \
    354        bs3kit/bs3-cmn-instantiate-x0.c16 \
    355        bs3kit/bs3-cmn-instantiate.c32 \
    356        bs3kit/bs3-cmn-instantiate.c64
    357 bs3-cpu-instr-2-template.o:: \
    358         $$(bs3-cpu-instr-2_0_OUTDIR)/bs3kit/bs3-cmn-instantiate-x0.o16 \
    359         $$(bs3-cpu-instr-2_0_OUTDIR)/bs3kit/bs3-cmn-instantiate.o32 \
    360         $$(bs3-cpu-instr-2_0_OUTDIR)/bs3kit/bs3-cmn-instantiate.o64 \
    361         $$(bs3-cpu-instr-2_0_OUTDIR)/bs3-cpu-instr-2-asm.o16
    362 
    363 #
    364 # CPU instructions #3 - SSE, ++.
    365 #
    366 MISCBINS += bs3-cpu-instr-3
    367 bs3-cpu-instr-3_TEMPLATE = VBoxBS3KitImg
    368 bs3-cpu-instr-3_INCS = .
    369 bs3-cpu-instr-3_SOURCES = \
    370         bs3kit/bs3-first-init-all-pe32.asm \
    371         bs3-cpu-instr-3.c32 \
    372         bs3-cpu-instr-3-asm.asm
    373 bs3-cpu-instr-3-template.o:: \
    374         $$(bs3-cpu-instr-3_0_OUTDIR)/bs3-cpu-instr-3-asm.o16
    375 
    376 #
    377 # CPU generated instruction tests #1
    378 #
    379 MISCBINS += bs3-cpu-generated-1
    380 bs3-cpu-generated-1_TEMPLATE = VBoxBS3KitImg
    381 bs3-cpu-generated-1_INCS = .
    382 bs3-cpu-generated-1_DEFS = BS3_CMN_INSTANTIATE_FILE1=bs3-cpu-generated-1-template.c
    383 bs3-cpu-generated-1_SOURCES = \
    384         bs3kit/bs3-first-rm.asm \
    385         bs3-cpu-generated-1.c \
    386         bs3-cpu-generated-1-asm.asm \
    387        bs3kit/bs3-cmn-instantiate-x0.c16 \
    388        bs3kit/bs3-cmn-instantiate.c32 \
    389        bs3kit/bs3-cmn-instantiate.c64 \
    390         $(bs3-cpu-generated-1_0_OUTDIR)/bs3-cpu-generated-1-data.c16
    391 bs3-cpu-generated-1_CLEAN = $(bs3-cpu-generated-1_0_OUTDIR)/bs3-cpu-generated-1-data.c16
    392 
    393 bs3-cpu-generated-1-template.o:: \
    394         $$(bs3-cpu-generated-1_0_OUTDIR)/bs3kit/bs3-cmn-instantiate-x0.o16 \
    395         $$(bs3-cpu-generated-1_0_OUTDIR)/bs3kit/bs3-cmn-instantiate.o32 \
    396         $$(bs3-cpu-generated-1_0_OUTDIR)/bs3kit/bs3-cmn-instantiate.o64 \
    397         $$(bs3-cpu-generated-1_0_OUTDIR)/bs3-cpu-generated-1-asm.o16
    398 
    399 $$(bs3-cpu-generated-1_0_OUTDIR)/bs3-cpu-generated-1-data.c16: \
    400                 $(PATH_SUB_CURRENT)/bs3-cpu-generated-1-data.py \
    401                 $(PATH_SUB_CURRENT)/../../VMM/VMMAll/IEMAllInstructionsPython.py \
    402                 $(PATH_SUB_CURRENT)/../../VMM/VMMAll/IEMAllInstructions*.cpp.h \
    403                | $$(dir $$@)
     239 #
     240 # Bs3kit
     241 #
     242
     243 #
     244 # APIC
     245 #
     246 MISCBINS += bs3-apic-1
     247 bs3-apic-1_TEMPLATE = VBoxBS3KitImg
     248 bs3-apic-1_SOURCES = \
     249        bs3kit/bs3-first-rm.asm \
     250        bs3-apic-1.c \
     251        bs3-apic-1-32.c32
     252
     253
     254 # CPU basics #2 (first being bootsector2-cpu-basic-1).
     255 MISCBINS += bs3-cpu-basic-2
     256 bs3-cpu-basic-2_TEMPLATE = VBoxBS3KitImg
     257 bs3-cpu-basic-2_INCS = .
     258 bs3-cpu-basic-2_DEFS = BS3_CMN_INSTANTIATE_FILE1=bs3-cpu-basic-2-template.c
     259 bs3-cpu-basic-2_DEFS += BS3_MODE_INSTANTIATE_FILE1=bs3-cpu-basic-2-template.c
     260 bs3-cpu-basic-2_SOURCES = \
     261        bs3kit/bs3-first-rm.asm \
     262        bs3-cpu-basic-2.c \
     263        bs3-cpu-basic-2-x0.c \
     264        bs3-cpu-basic-2-32.c32 \
     265        bs3-cpu-basic-2-pf.c32 \
     266        bs3-cpu-basic-2-asm.asm \
     267        bs3kit/bs3-cmn-instantiate-x0.c16 \
     268        bs3kit/bs3-cmn-instantiate.c32 \
     269        bs3kit/bs3-cmn-instantiate.c64
     270 bs3-cpu-basic-2-template.o:: \
     271                $$(bs3-cpu-basic-2_0_OUTDIR)/bs3kit/bs3-cmn-instantiate-x0.o16 \
     272                $$(bs3-cpu-basic-2_0_OUTDIR)/bs3kit/bs3-cmn-instantiate.o32 \
     273                $$(bs3-cpu-basic-2_0_OUTDIR)/bs3kit/bs3-cmn-instantiate.o64 \
     274                $$(bs3-cpu-basic-2_0_OUTDIR)/bs3-cpu-basic-2-asm.o16
     275
     276 #
     277 # CPU weird stuff #1.
     278 #
     279 MISCBINS += bs3-cpu-weird-1
     280 bs3-cpu-weird-1_TEMPLATE = VBoxBS3KitImg
     281 bs3-cpu-weird-1_INCS = .
     282 bs3-cpu-weird-1_SOURCES = \
     283        bs3kit/bs3-first-rm.asm \
     284        bs3-cpu-weird-1.c \
     285        bs3-cpu-weird-1-x0.c \
     286        bs3-cpu-weird-1-asm.asm
     287
     288 #
     289 # 64-bit CPU state #1.
     290 #
     291 MISCBINS += bs3-cpu-state64-1
     292 bs3-cpu-state64-1_TEMPLATE = VBoxBS3KitImg
     293 bs3-cpu-state64-1_INCS = .
     294 bs3-cpu-state64-1_SOURCES = \
     295        bs3kit/bs3-first-init-all-lm64.asm \
     296        bs3-cpu-state64-1.c64 \
     297        bs3-cpu-state64-1-asm.asm
     298
     299 #
     300 # FPU state corruption checker.
     301 #
     302 MISCBINS += bs3-fpustate-1
     303 bs3-fpustate-1_TEMPLATE = VBoxBS3KitImg
     304 bs3-fpustate-1_INCS = .
     305 bs3-fpustate-1_DEFS = BS3_CMN_INSTANTIATE_FILE1=bs3-fpustate-1-template.c
     306 bs3-fpustate-1_DEFS += BS3_MODE_INSTANTIATE_FILE1=bs3-fpustate-1-template.c
     307 bs3-fpustate-1_SOURCES = \
     308        bs3kit/bs3-first-rm.asm \
     309        bs3-fpustate-1.c \
     310        bs3kit/bs3-cmn-instantiate.c16 \
     311        bs3kit/bs3-cmn-instantiate.c32 \
     312        bs3kit/bs3-cmn-instantiate.c64 \
     313        bs3-fpustate-1-asm.asm
     314 bs3-fpustate-1-template.o:: \
     315                $$(bs3-fpustate-1_0_OUTDIR)/bs3kit/bs3-cmn-instantiate.o16 \
     316                $$(bs3-fpustate-1_0_OUTDIR)/bs3kit/bs3-cmn-instantiate.o32 \
     317                $$(bs3-fpustate-1_0_OUTDIR)/bs3kit/bs3-cmn-instantiate.o64 \
     318                $$(bs3-fpustate-1_0_OUTDIR)/bs3-fpustate-1-asm.o16
     319
     320 #
     321 # CPU instruction decoding experiments.
     322 #
     323 MISCBINS += bs3-cpu-decoding-1
     324 bs3-cpu-decoding-1_TEMPLATE = VBoxBS3KitImg
     325 bs3-cpu-decoding-1_INCS = .
     326 bs3-cpu-decoding-1_DEFS = BS3_CMN_INSTANTIATE_FILE1=bs3-cpu-decoding-1-template.c
     327 bs3-cpu-decoding-1_DEFS += BS3_MODE_INSTANTIATE_FILE1=bs3-cpu-decoding-1-template.c
     328 bs3-cpu-decoding-1_SOURCES = \
     329        bs3kit/bs3-first-init-all-pp32.asm \
     330        bs3-cpu-decoding-1.c32 \
     331        bs3-cpu-decoding-1-asm.asm
     332 #       bs3kit/bs3-cmn-instantiate.c16 \
     333 #       bs3kit/bs3-cmn-instantiate.c32 \
     334 #       bs3kit/bs3-cmn-instantiate.c64
     335 bs3-cpu-decoding-1-template.o:: \
     336                $$(bs3-cpu-decoding-1_0_OUTDIR)/bs3-cpu-decoding-1-asm.o16
     337 #      $$(bs3-cpu-decoding-1_0_OUTDIR)/bs3kit/bs3-cmn-instantiate.o16 \
     338 #      $$(bs3-cpu-decoding-1_0_OUTDIR)/bs3kit/bs3-cmn-instantiate.o32 \
     339 #      $$(bs3-cpu-decoding-1_0_OUTDIR)/bs3kit/bs3-cmn-instantiate.o64 \
     340
     341
     342 #
     343 # CPU instructions #2 (first being bootsector2-cpu-instr-1).
     344 #
     345 MISCBINS += bs3-cpu-instr-2
     346 bs3-cpu-instr-2_TEMPLATE = VBoxBS3KitImg
     347 bs3-cpu-instr-2_INCS = .
     348 bs3-cpu-instr-2_DEFS = BS3_CMN_INSTANTIATE_FILE1=bs3-cpu-instr-2-template.c
     349 bs3-cpu-instr-2_DEFS += BS3_MODE_INSTANTIATE_FILE1=bs3-cpu-instr-2-template.c
     350 bs3-cpu-instr-2_SOURCES = \
     351        bs3kit/bs3-first-rm.asm \
     352        bs3-cpu-instr-2.c \
     353        bs3-cpu-instr-2-asm.asm \
     354        bs3kit/bs3-cmn-instantiate-x0.c16 \
     355        bs3kit/bs3-cmn-instantiate.c32 \
     356        bs3kit/bs3-cmn-instantiate.c64
     357 bs3-cpu-instr-2-template.o:: \
     358                $$(bs3-cpu-instr-2_0_OUTDIR)/bs3kit/bs3-cmn-instantiate-x0.o16 \
     359                $$(bs3-cpu-instr-2_0_OUTDIR)/bs3kit/bs3-cmn-instantiate.o32 \
     360                $$(bs3-cpu-instr-2_0_OUTDIR)/bs3kit/bs3-cmn-instantiate.o64 \
     361                $$(bs3-cpu-instr-2_0_OUTDIR)/bs3-cpu-instr-2-asm.o16
     362
     363 #
     364 # CPU instructions #3 - SSE, ++.
     365 #
     366 MISCBINS += bs3-cpu-instr-3
     367 bs3-cpu-instr-3_TEMPLATE = VBoxBS3KitImg
     368 bs3-cpu-instr-3_INCS = .
     369 bs3-cpu-instr-3_SOURCES = \
     370        bs3kit/bs3-first-init-all-pe32.asm \
     371        bs3-cpu-instr-3.c32 \
     372        bs3-cpu-instr-3-asm.asm
     373 bs3-cpu-instr-3-template.o:: \
     374                $$(bs3-cpu-instr-3_0_OUTDIR)/bs3-cpu-instr-3-asm.o16
     375
     376 #
     377 # CPU generated instruction tests #1
     378 #
     379 MISCBINS += bs3-cpu-generated-1
     380 bs3-cpu-generated-1_TEMPLATE = VBoxBS3KitImg
     381 bs3-cpu-generated-1_INCS = .
     382 bs3-cpu-generated-1_DEFS = BS3_CMN_INSTANTIATE_FILE1=bs3-cpu-generated-1-template.c
     383 bs3-cpu-generated-1_SOURCES = \
     384        bs3kit/bs3-first-rm.asm \
     385        bs3-cpu-generated-1.c \
     386        bs3-cpu-generated-1-asm.asm \
     387        bs3kit/bs3-cmn-instantiate-x0.c16 \
     388        bs3kit/bs3-cmn-instantiate.c32 \
     389        bs3kit/bs3-cmn-instantiate.c64 \
     390        $(bs3-cpu-generated-1_0_OUTDIR)/bs3-cpu-generated-1-data.c16
     391 bs3-cpu-generated-1_CLEAN = $(bs3-cpu-generated-1_0_OUTDIR)/bs3-cpu-generated-1-data.c16
     392
     393 bs3-cpu-generated-1-template.o:: \
     394                $$(bs3-cpu-generated-1_0_OUTDIR)/bs3kit/bs3-cmn-instantiate-x0.o16 \
     395                $$(bs3-cpu-generated-1_0_OUTDIR)/bs3kit/bs3-cmn-instantiate.o32 \
     396                $$(bs3-cpu-generated-1_0_OUTDIR)/bs3kit/bs3-cmn-instantiate.o64 \
     397                $$(bs3-cpu-generated-1_0_OUTDIR)/bs3-cpu-generated-1-asm.o16
     398
     399 $$(bs3-cpu-generated-1_0_OUTDIR)/bs3-cpu-generated-1-data.c16: \
     400                $(PATH_SUB_CURRENT)/bs3-cpu-generated-1-data.py \
     401                $(PATH_SUB_CURRENT)/../../VMM/VMMAll/IEMAllInstructionsPython.py \
     402                $(PATH_SUB_CURRENT)/../../VMM/VMMAll/IEMAllInstructions*.cpp.h \
     403                | $$(dir $$@)
    404404        $(REDIRECT) -0 /dev/null -- $(VBOX_BLD_PYTHON) $< $@
    405405
    406 #
    407 # Memory allocation.
    408 #
    409 MISCBINS += bs3-memalloc-1
    410 bs3-memalloc-1_TEMPLATE = VBoxBS3KitImg
    411 bs3-memalloc-1_INCS = .
    412 bs3-memalloc-1_SOURCES = \
    413         bs3kit/bs3-first-init-all-lm64.asm \
    414         bs3-memalloc-1.c64
    415 
    416 
    417 #
    418 # Timer Interrupts
    419 #
    420 MISCBINS += bs3-timers-1
    421 bs3-timers-1_TEMPLATE = VBoxBS3KitImg
    422 bs3-timers-1_INCS = .
    423 bs3-timers-1_DEFS  = BS3_CMN_INSTANTIATE_FILE1=bs3-timers-1-template.c
    424 bs3-timers-1_DEFS += BS3_MODE_INSTANTIATE_FILE1=bs3-timers-1-template.c
    425 bs3-timers-1_SOURCES = \
    426         bs3kit/bs3-first-rm.asm \
    427         bs3-timers-1.c \
    428         bs3-timers-1-x0.c
    429 
    430 #
    431 # Timing
    432 #
    433 MISCBINS += bs3-timing-1
    434 bs3-timing-1_TEMPLATE = VBoxBS3KitImg
    435 bs3-timing-1_INCS = .
    436 bs3-timing-1_DEFS  = BS3_CMN_INSTANTIATE_FILE1=bs3-timing-1-template.c
    437 bs3-timing-1_DEFS += BS3_MODE_INSTANTIATE_FILE1=bs3-timing-1-template.c
    438 bs3-timing-1_SOURCES = \
    439         bs3kit/bs3-first-rm.asm \
    440         bs3-timing-1.c \
    441         bs3-timing-1-32.c32
    442 
    443 #
    444 # Lock contention and interruption.
    445 #
    446 MISCBINS += bs3-locking-1
    447 bs3-locking-1_TEMPLATE = VBoxBS3KitImg
    448 bs3-locking-1_INCS = .
    449 bs3-locking-1_SOURCES = \
    450         bs3kit/bs3-first-rm.asm \
    451         bs3-locking-1.c
     406 #
     407 # Memory allocation.
     408 #
     409 MISCBINS += bs3-memalloc-1
     410 bs3-memalloc-1_TEMPLATE = VBoxBS3KitImg
     411 bs3-memalloc-1_INCS = .
     412 bs3-memalloc-1_SOURCES = \
     413        bs3kit/bs3-first-init-all-lm64.asm \
     414        bs3-memalloc-1.c64
     415
     416
     417 #
     418 # Timer Interrupts
     419 #
     420 MISCBINS += bs3-timers-1
     421 bs3-timers-1_TEMPLATE = VBoxBS3KitImg
     422 bs3-timers-1_INCS = .
     423 bs3-timers-1_DEFS = BS3_CMN_INSTANTIATE_FILE1=bs3-timers-1-template.c
     424 bs3-timers-1_DEFS += BS3_MODE_INSTANTIATE_FILE1=bs3-timers-1-template.c
     425 bs3-timers-1_SOURCES = \
     426        bs3kit/bs3-first-rm.asm \
     427        bs3-timers-1.c \
     428        bs3-timers-1-x0.c
     429
     430 #
     431 # Timing
     432 #
     433 MISCBINS += bs3-timing-1
     434 bs3-timing-1_TEMPLATE = VBoxBS3KitImg
     435 bs3-timing-1_INCS = .
     436 bs3-timing-1_DEFS = BS3_CMN_INSTANTIATE_FILE1=bs3-timing-1-template.c
     437 bs3-timing-1_DEFS += BS3_MODE_INSTANTIATE_FILE1=bs3-timing-1-template.c
     438 bs3-timing-1_SOURCES = \
     439        bs3kit/bs3-first-rm.asm \
     440        bs3-timing-1.c \
     441        bs3-timing-1-32.c32
     442
     443 #
     444 # Lock contention and interruption.
     445 #
     446 MISCBINS += bs3-locking-1
     447 bs3-locking-1_TEMPLATE = VBoxBS3KitImg
     448 bs3-locking-1_INCS = .
     449 bs3-locking-1_SOURCES = \
     450        bs3kit/bs3-first-rm.asm \
     451        bs3-locking-1.c
    452452
    453453endif # VBOX_WITH_BS3KIT
  • trunk/src/VBox/ValidationKit/bootsectors/bs3kit/Makefile.kmk

    r98107 r98418  
    4949BLDPROGS += VBoxBs3ObjConverter
    5050VBoxBs3ObjConverter_TEMPLATE = VBoxBldProg
    51 VBoxBs3ObjConverter_DEFS     =  BS3KIT_BS3CLASS16CODE=$(BS3KIT_BS3CLASS16CODE) IN_RT_R3
     51VBoxBs3ObjConverter_DEFS     = BS3KIT_BS3CLASS16CODE=$(BS3KIT_BS3CLASS16CODE) IN_RT_R3
    5252VBoxBs3ObjConverter_SOURCES  = \
    5353        $(VBOX_PATH_BS3KIT_SRC)/VBoxBs3ObjConverter.cpp \
    54        $(PATH_ROOT)/src/VBox/Runtime/common/sort/shellsort.cpp
     54        $(PATH_ROOT)/src/VBox/Runtime/common/sort/shellsort.cpp
    5555
    5656
     
    8181        bs3-cmn-PrintStr.c \
    8282        bs3-cmn-PrintStrN.asm \
    83        bs3-cmn-StrFormatV.c \
    84        bs3-cmn-StrPrintf.c \
    85        bs3-cmn-StrLen.c \
    86        bs3-cmn-StrNLen.c \
    87        bs3-cmn-StrCpy.c \
    88        bs3-cmn-MemChr.asm \
    89        bs3-cmn-MemCmp.asm \
    90        bs3-cmn-MemCpy.c \
    91        bs3-cmn-MemPCpy.c \
    92        bs3-cmn-MemMove.c \
    93        bs3-cmn-MemSet.asm \
    94        bs3-cmn-MemZero.asm \
    95        bs3-cmn-MemAlloc.c \
    96        bs3-cmn-MemAllocZ.c \
    97        bs3-cmn-MemFree.c \
    98        bs3-cmn-MemGuardedTestPage.c \
    99        bs3-cmn-MemPrintInfo.c \
    100        bs3-cmn-PagingData.c \
    101        bs3-cmn-PagingInitRootForPP.c \
    102        bs3-cmn-PagingInitRootForPAE.c \
    103        bs3-cmn-PagingInitRootForLM.c \
    104        bs3-cmn-PagingAlias.c \
    105        bs3-cmn-PagingProtect.c \
    106        bs3-cmn-PagingQueryAddressInfo.c \
    107        bs3-cmn-PagingSetupCanonicalTraps.c \
    108        bs3-cmn-pic-data.c \
    109        bs3-cmn-PicMaskAll.c \
    110        bs3-cmn-PicUpdateMask.c \
    111        bs3-cmn-PicSetup.c \
    112        bs3-cmn-pit.c \
    113        bs3-cmn-PitIrqHandler.c \
    114        bs3-cmn-RegCtxRestore.asm \
    115        bs3-cmn-RegCtxConvertToRingX.c \
    116        bs3-cmn-RegCtxConvertV86ToRm.c \
    117        bs3-cmn-RegCtxPrint.c \
    118        bs3-cmn-RegCtxGetRspSsAsCurPtr.c \
    119        bs3-cmn-RegCtxSave.asm \
    120        bs3-cmn-RegCtxSaveEx.asm \
    121        bs3-cmn-RegCtxSaveForMode.c \
    122        bs3-cmn-RegCtxSetGrpSegFromCurPtr.c \
    123        bs3-cmn-RegCtxSetGrpSegFromFlat.c \
    124        bs3-cmn-RegCtxSetRipCsFromCurPtr.c \
    125        bs3-cmn-RegCtxSetRipCsFromFlat.c \
    126        bs3-cmn-RegCtxSetRipCsFromLnkPtr.c \
    127        bs3-cmn-RegCtxSetGpr.c \
    128        bs3-cmn-RegGetCr0.asm \
    129        bs3-cmn-RegGetCr2.asm \
    130        bs3-cmn-RegGetCr3.asm \
    131        bs3-cmn-RegGetCr4.asm \
    132        bs3-cmn-RegSetCr0.asm \
    133        bs3-cmn-RegSetCr2.asm \
    134        bs3-cmn-RegSetCr3.asm \
    135        bs3-cmn-RegSetCr4.asm \
    136        bs3-cmn-RegGetDr0.asm \
    137        bs3-cmn-RegGetDr1.asm \
    138        bs3-cmn-RegGetDr2.asm \
    139        bs3-cmn-RegGetDr3.asm \
    140        bs3-cmn-RegGetDr6.asm \
    141        bs3-cmn-RegGetDr7.asm \
    142        bs3-cmn-RegGetDrX.asm \
    143        bs3-cmn-RegSetDr0.asm \
    144        bs3-cmn-RegSetDr1.asm \
    145        bs3-cmn-RegSetDr2.asm \
    146        bs3-cmn-RegSetDr3.asm \
    147        bs3-cmn-RegSetDr6.asm \
    148        bs3-cmn-RegSetDr7.asm \
    149        bs3-cmn-RegSetDrX.asm \
    150        bs3-cmn-RegGetTr.asm \
    151        bs3-cmn-RegSetTr.asm \
    152        bs3-cmn-RegGetLdtr.asm \
    153        bs3-cmn-RegSetLdtr.asm \
    154        bs3-cmn-RegGetXcr0.asm \
    155        bs3-cmn-RegSetXcr0.asm \
    156        bs3-cmn-ExtCtxInit.c \
    157        bs3-cmn-ExtCtxSave.asm \
    158        bs3-cmn-ExtCtxSaveEx.asm \
    159        bs3-cmn-ExtCtxRestore.asm \
    160        bs3-cmn-ExtCtxRestoreEx.asm \
    161        bs3-cmn-ExtCtxGetSize.c \
    162        bs3-cmn-ExtCtxAlloc.c \
    163        bs3-cmn-ExtCtxFree.c \
    164        bs3-cmn-ExtCtxCopy.c \
    165        bs3-cmn-ExtCtxGetFcw.c \
    166        bs3-cmn-ExtCtxSetFcw.c \
    167        bs3-cmn-ExtCtxGetFsw.c \
    168        bs3-cmn-ExtCtxSetFsw.c \
    169        bs3-cmn-ExtCtxGetAbridgedFtw.c \
    170        bs3-cmn-ExtCtxSetAbridgedFtw.c \
    171        bs3-cmn-ExtCtxGetMxCsr.c \
    172        bs3-cmn-ExtCtxSetMxCsr.c \
    173        bs3-cmn-ExtCtxGetMxCsrMask.c \
    174        bs3-cmn-ExtCtxSetMxCsrMask.c \
    175        bs3-cmn-ExtCtxGetMm.c \
    176        bs3-cmn-ExtCtxSetMm.c \
    177        bs3-cmn-ExtCtxGetXmm.c \
    178        bs3-cmn-ExtCtxSetXmm.c \
    179        bs3-cmn-ExtCtxGetYmm.c \
    180        bs3-cmn-ExtCtxSetYmm.c \
    181        bs3-cmn-SelFar32ToFlat32.c \
    182        bs3-cmn-SelFar32ToFlat32NoClobber.asm \
    183        bs3-cmn-SelProtFar32ToFlat32.c \
    184        bs3-cmn-SelProtModeCodeToRealMode.asm \
    185        bs3-cmn-SelRealModeCodeToProtMode.asm \
    186        bs3-cmn-SelFlatCodeToRealMode.asm \
    187        bs3-cmn-SelFlatCodeToProtFar16.asm \
    188        bs3-cmn-SelRealModeDataToProtFar16.asm \
    189        bs3-cmn-SelProtFar16DataToRealMode.asm \
    190        bs3-cmn-SelRealModeDataToFlat.asm \
    191        bs3-cmn-SelProtFar16DataToFlat.asm \
    192        bs3-cmn-SelFlatDataToProtFar16.asm \
    193        bs3-cmn-SelFlatDataToRealMode.asm \
    194        bs3-cmn-SelLnkPtrToCurPtr.c \
    195        bs3-cmn-SelLnkPtrToFlat.c \
    196        bs3-cmn-SelSetup16BitData.c \
    197        bs3-cmn-SelSetup16BitCode.c \
    198        bs3-cmn-SelSetup32BitCode.c \
    199        bs3-cmn-SelSetupGate.c \
    200        bs3-cmn-SelSetupGate64.c \
    201        bs3-cmn-SlabInit.c \
    202        bs3-cmn-SlabAlloc.c \
    203        bs3-cmn-SlabAllocEx.c \
    204        bs3-cmn-SlabFree.c \
    205        bs3-cmn-SlabListInit.c \
    206        bs3-cmn-SlabListAdd.c \
    207        bs3-cmn-SlabListAlloc.c \
    208        bs3-cmn-SlabListAllocEx.c \
    209        bs3-cmn-SlabListFree.c \
    210        bs3-cmn-SwitchHlpConvRealModeRetfPopBpDecBpAndReturn.asm \
    211        bs3-cmn-SwitchHlpConvProtModeRetfPopBpDecBpAndReturn.asm \
    212        bs3-cmn-SwitchToRing0.asm \
    213        bs3-cmn-SwitchToRing1.asm \
    214        bs3-cmn-SwitchToRing2.asm \
    215        bs3-cmn-SwitchToRing3.asm \
    216        bs3-cmn-SwitchToRingX.asm \
    217        bs3-cmn-SwitchTo16Bit.asm \
    218        bs3-cmn-SwitchTo16BitV86.asm \
    219        bs3-cmn-SwitchTo32Bit.asm \
    220        bs3-cmn-SwitchTo64Bit.asm \
    221        bs3-cmn-Syscall.asm \
    222        bs3-cmn-TestData.c \
    223        bs3-cmn-TestInit.c \
    224        bs3-cmn-TestFailed.c \
     83        bs3-cmn-StrFormatV.c \
     84        bs3-cmn-StrPrintf.c \
     85        bs3-cmn-StrLen.c \
     86        bs3-cmn-StrNLen.c \
     87        bs3-cmn-StrCpy.c \
     88        bs3-cmn-MemChr.asm \
     89        bs3-cmn-MemCmp.asm \
     90        bs3-cmn-MemCpy.c \
     91        bs3-cmn-MemPCpy.c \
     92        bs3-cmn-MemMove.c \
     93        bs3-cmn-MemSet.asm \
     94        bs3-cmn-MemZero.asm \
     95        bs3-cmn-MemAlloc.c \
     96        bs3-cmn-MemAllocZ.c \
     97        bs3-cmn-MemFree.c \
     98        bs3-cmn-MemGuardedTestPage.c \
     99        bs3-cmn-MemPrintInfo.c \
     100        bs3-cmn-PagingData.c \
     101        bs3-cmn-PagingInitRootForPP.c \
     102        bs3-cmn-PagingInitRootForPAE.c \
     103        bs3-cmn-PagingInitRootForLM.c \
     104        bs3-cmn-PagingAlias.c \
     105        bs3-cmn-PagingProtect.c \
     106        bs3-cmn-PagingQueryAddressInfo.c \
     107        bs3-cmn-PagingSetupCanonicalTraps.c \
     108        bs3-cmn-pic-data.c \
     109        bs3-cmn-PicMaskAll.c \
     110        bs3-cmn-PicUpdateMask.c \
     111        bs3-cmn-PicSetup.c \
     112        bs3-cmn-pit.c \
     113        bs3-cmn-PitIrqHandler.c \
     114        bs3-cmn-RegCtxRestore.asm \
     115        bs3-cmn-RegCtxConvertToRingX.c \
     116        bs3-cmn-RegCtxConvertV86ToRm.c \
     117        bs3-cmn-RegCtxPrint.c \
     118        bs3-cmn-RegCtxGetRspSsAsCurPtr.c \
     119        bs3-cmn-RegCtxSave.asm \
     120        bs3-cmn-RegCtxSaveEx.asm \
     121        bs3-cmn-RegCtxSaveForMode.c \
     122        bs3-cmn-RegCtxSetGrpSegFromCurPtr.c \
     123        bs3-cmn-RegCtxSetGrpSegFromFlat.c \
     124        bs3-cmn-RegCtxSetRipCsFromCurPtr.c \
     125        bs3-cmn-RegCtxSetRipCsFromFlat.c \
     126        bs3-cmn-RegCtxSetRipCsFromLnkPtr.c \
     127        bs3-cmn-RegCtxSetGpr.c \
     128        bs3-cmn-RegGetCr0.asm \
     129        bs3-cmn-RegGetCr2.asm \
     130        bs3-cmn-RegGetCr3.asm \
     131        bs3-cmn-RegGetCr4.asm \
     132        bs3-cmn-RegSetCr0.asm \
     133        bs3-cmn-RegSetCr2.asm \
     134        bs3-cmn-RegSetCr3.asm \
     135        bs3-cmn-RegSetCr4.asm \
     136        bs3-cmn-RegGetDr0.asm \
     137        bs3-cmn-RegGetDr1.asm \
     138        bs3-cmn-RegGetDr2.asm \
     139        bs3-cmn-RegGetDr3.asm \
     140        bs3-cmn-RegGetDr6.asm \
     141        bs3-cmn-RegGetDr7.asm \
     142        bs3-cmn-RegGetDrX.asm \
     143        bs3-cmn-RegSetDr0.asm \
     144        bs3-cmn-RegSetDr1.asm \
     145        bs3-cmn-RegSetDr2.asm \
     146        bs3-cmn-RegSetDr3.asm \
     147        bs3-cmn-RegSetDr6.asm \
     148        bs3-cmn-RegSetDr7.asm \
     149        bs3-cmn-RegSetDrX.asm \
     150        bs3-cmn-RegGetTr.asm \
     151        bs3-cmn-RegSetTr.asm \
     152        bs3-cmn-RegGetLdtr.asm \
     153        bs3-cmn-RegSetLdtr.asm \
     154        bs3-cmn-RegGetXcr0.asm \
     155        bs3-cmn-RegSetXcr0.asm \
     156        bs3-cmn-ExtCtxInit.c \
     157        bs3-cmn-ExtCtxSave.asm \
     158        bs3-cmn-ExtCtxSaveEx.asm \
     159        bs3-cmn-ExtCtxRestore.asm \
     160        bs3-cmn-ExtCtxRestoreEx.asm \
     161        bs3-cmn-ExtCtxGetSize.c \
     162        bs3-cmn-ExtCtxAlloc.c \
     163        bs3-cmn-ExtCtxFree.c \
     164        bs3-cmn-ExtCtxCopy.c \
     165        bs3-cmn-ExtCtxGetFcw.c \
     166        bs3-cmn-ExtCtxSetFcw.c \
     167        bs3-cmn-ExtCtxGetFsw.c \
     168        bs3-cmn-ExtCtxSetFsw.c \
     169        bs3-cmn-ExtCtxGetAbridgedFtw.c \
     170        bs3-cmn-ExtCtxSetAbridgedFtw.c \
     171        bs3-cmn-ExtCtxGetMxCsr.c \
     172        bs3-cmn-ExtCtxSetMxCsr.c \
     173        bs3-cmn-ExtCtxGetMxCsrMask.c \
     174        bs3-cmn-ExtCtxSetMxCsrMask.c \
     175        bs3-cmn-ExtCtxGetMm.c \
     176        bs3-cmn-ExtCtxSetMm.c \
     177        bs3-cmn-ExtCtxGetXmm.c \
     178        bs3-cmn-ExtCtxSetXmm.c \
     179        bs3-cmn-ExtCtxGetYmm.c \
     180        bs3-cmn-ExtCtxSetYmm.c \
     181        bs3-cmn-SelFar32ToFlat32.c \
     182        bs3-cmn-SelFar32ToFlat32NoClobber.asm \
     183        bs3-cmn-SelProtFar32ToFlat32.c \
     184        bs3-cmn-SelProtModeCodeToRealMode.asm \
     185        bs3-cmn-SelRealModeCodeToProtMode.asm \
     186        bs3-cmn-SelFlatCodeToRealMode.asm \
     187        bs3-cmn-SelFlatCodeToProtFar16.asm \
     188        bs3-cmn-SelRealModeDataToProtFar16.asm \
     189        bs3-cmn-SelProtFar16DataToRealMode.asm \
     190        bs3-cmn-SelRealModeDataToFlat.asm \
     191        bs3-cmn-SelProtFar16DataToFlat.asm \
     192        bs3-cmn-SelFlatDataToProtFar16.asm \
     193        bs3-cmn-SelFlatDataToRealMode.asm \
     194        bs3-cmn-SelLnkPtrToCurPtr.c \
     195        bs3-cmn-SelLnkPtrToFlat.c \
     196        bs3-cmn-SelSetup16BitData.c \
     197        bs3-cmn-SelSetup16BitCode.c \
     198        bs3-cmn-SelSetup32BitCode.c \
     199        bs3-cmn-SelSetupGate.c \
     200        bs3-cmn-SelSetupGate64.c \
     201        bs3-cmn-SlabInit.c \
     202        bs3-cmn-SlabAlloc.c \
     203        bs3-cmn-SlabAllocEx.c \
     204        bs3-cmn-SlabFree.c \
     205        bs3-cmn-SlabListInit.c \
     206        bs3-cmn-SlabListAdd.c \
     207        bs3-cmn-SlabListAlloc.c \
     208        bs3-cmn-SlabListAllocEx.c \
     209        bs3-cmn-SlabListFree.c \
     210        bs3-cmn-SwitchHlpConvRealModeRetfPopBpDecBpAndReturn.asm \
     211        bs3-cmn-SwitchHlpConvProtModeRetfPopBpDecBpAndReturn.asm \
     212        bs3-cmn-SwitchToRing0.asm \
     213        bs3-cmn-SwitchToRing1.asm \
     214        bs3-cmn-SwitchToRing2.asm \
     215        bs3-cmn-SwitchToRing3.asm \
     216        bs3-cmn-SwitchToRingX.asm \
     217        bs3-cmn-SwitchTo16Bit.asm \
     218        bs3-cmn-SwitchTo16BitV86.asm \
     219        bs3-cmn-SwitchTo32Bit.asm \
     220        bs3-cmn-SwitchTo64Bit.asm \
     221        bs3-cmn-Syscall.asm \
     222        bs3-cmn-TestData.c \
     223        bs3-cmn-TestInit.c \
     224        bs3-cmn-TestFailed.c \
    225225        bs3-cmn-TestNow.asm \
    226        bs3-cmn-TestSkipped.c \
    227        bs3-cmn-TestSub.c \
    228        bs3-cmn-TestSubDone.c \
    229        bs3-cmn-TestSubErrorCount.c \
    230        bs3-cmn-TestTerm.c \
     226        bs3-cmn-TestSkipped.c \
     227        bs3-cmn-TestSub.c \
     228        bs3-cmn-TestSubDone.c \
     229        bs3-cmn-TestSubErrorCount.c \
     230        bs3-cmn-TestTerm.c \
    231231        bs3-cmn-TestSendCmdWithStr.asm \
    232232        bs3-cmn-TestSendCmdWithU32.asm \
     
    261261        bs3-cmn-TrapSetJmpAndRestoreWithExtCtxAndRm.c \
    262262        bs3-cmn-TrapUnsetJmp.c \
    263        bs3-cmn-UtilSetFullGdtr.asm \
    264        bs3-cmn-UtilSetFullIdtr.asm \
    265        bs3-cmn-TestDoModesByOneHlp.asm \
    266        ../../../Runtime/common/asm/ASMBitFirstClear.asm \
    267        ../../../Runtime/common/asm/ASMBitFirstSet.asm \
    268        ../../../Runtime/common/asm/ASMBitNextClear.asm \
    269        ../../../Runtime/common/asm/ASMBitNextSet.asm \
    270        ../../../Runtime/common/asm/ASMBitFirstSetU16.asm \
    271        ../../../Runtime/common/asm/ASMBitFirstSetU32.asm \
    272        ../../../Runtime/common/asm/ASMBitFirstSetU64.asm \
    273        ../../../Runtime/common/asm/ASMBitLastSetU16.asm \
    274        ../../../Runtime/common/asm/ASMBitLastSetU32.asm \
    275        ../../../Runtime/common/asm/ASMBitLastSetU64.asm \
    276        ../../../Runtime/common/asm/ASMMemFirstMismatchingU8.asm \
    277        ../../../Runtime/common/asm/ASMSerializeInstruction-cpuid.asm \
    278        ../../../Runtime/common/asm/ASMSerializeInstruction-iret.asm \
    279        ../../../Runtime/common/asm/ASMSerializeInstruction-rdtscp.asm \
    280        ../../../Runtime/common/asm/ASMCpuIdExSlow.asm \
    281        ../../../Runtime/common/asm/ASMCpuId.asm \
    282        ../../../Runtime/common/asm/ASMCpuId_Idx_ECX.asm \
    283        ../../../Runtime/common/asm/ASMWrMsr.asm \
    284        ../../../Runtime/common/asm/ASMGetXcr0.asm \
    285        ../../../Runtime/common/asm/ASMSetXcr0.asm \
    286        ../../../Runtime/common/asm/ASMSetFlags.asm \
    287        ../../../Runtime/common/asm/ASMGetFlags.asm \
    288        ../../../Runtime/common/asm/ASMMultU64ByU32DivByU32.asm \
     263        bs3-cmn-UtilSetFullGdtr.asm \
     264        bs3-cmn-UtilSetFullIdtr.asm \
     265        bs3-cmn-TestDoModesByOneHlp.asm \
     266        ../../../Runtime/common/asm/ASMBitFirstClear.asm \
     267        ../../../Runtime/common/asm/ASMBitFirstSet.asm \
     268        ../../../Runtime/common/asm/ASMBitNextClear.asm \
     269        ../../../Runtime/common/asm/ASMBitNextSet.asm \
     270        ../../../Runtime/common/asm/ASMBitFirstSetU16.asm \
     271        ../../../Runtime/common/asm/ASMBitFirstSetU32.asm \
     272        ../../../Runtime/common/asm/ASMBitFirstSetU64.asm \
     273        ../../../Runtime/common/asm/ASMBitLastSetU16.asm \
     274        ../../../Runtime/common/asm/ASMBitLastSetU32.asm \
     275        ../../../Runtime/common/asm/ASMBitLastSetU64.asm \
     276        ../../../Runtime/common/asm/ASMMemFirstMismatchingU8.asm \
     277        ../../../Runtime/common/asm/ASMSerializeInstruction-cpuid.asm \
     278        ../../../Runtime/common/asm/ASMSerializeInstruction-iret.asm \
     279        ../../../Runtime/common/asm/ASMSerializeInstruction-rdtscp.asm \
     280        ../../../Runtime/common/asm/ASMCpuIdExSlow.asm \
     281        ../../../Runtime/common/asm/ASMCpuId.asm \
     282        ../../../Runtime/common/asm/ASMCpuId_Idx_ECX.asm \
     283        ../../../Runtime/common/asm/ASMWrMsr.asm \
     284        ../../../Runtime/common/asm/ASMGetXcr0.asm \
     285        ../../../Runtime/common/asm/ASMSetXcr0.asm \
     286        ../../../Runtime/common/asm/ASMSetFlags.asm \
     287        ../../../Runtime/common/asm/ASMGetFlags.asm \
     288        ../../../Runtime/common/asm/ASMMultU64ByU32DivByU32.asm
    289289
    290290# The 16-bit BS3Kit library.
     
    314314        bs3-wc16-U4D.asm \
    315315        bs3-wc16-I4D.asm \
    316        bs3-c16-SwitchFromV86To16BitAndCallC.asm \
    317        bs3-c16-Trap16Generic.asm \
    318        bs3-c16-TrapRmV86Generic.asm \
    319        bs3-c16-TrapRmV86Data.c \
     316        bs3-c16-SwitchFromV86To16BitAndCallC.asm \
     317        bs3-c16-Trap16Generic.asm \
     318        bs3-c16-TrapRmV86Generic.asm \
     319        bs3-c16-TrapRmV86Data.c \
    320320        bs3-c16-CreateHybridFarRet.asm
    321321bs3kit-common-16_bs3-cmn-UInt64Div.c_CFLAGS = -oh -d0 # -d1+ vs -d0 saves 0x6a3-0x577 = 0x12C (300)!
     
    337337bs3kit-common-32_ASDEFS   = RT_ASMDEFS_INC_FIRST_FILE
    338338bs3kit-common-32_SOURCES  = $(VBOX_BS3KIT_COMMON_SOURCES) \
    339        bs3-cmn-PagingMapRamAbove4GForLM.c \
    340        bs3-cmn-SwitchHlpConvFlatRetToRetfProtMode.asm \
     339        bs3-cmn-PagingMapRamAbove4GForLM.c \
     340        bs3-cmn-SwitchHlpConvFlatRetToRetfProtMode.asm \
    341341        bs3-cmn-UInt64Div.c \
    342342        bs3-wc32-U8D.asm \
     
    346346        bs3-wc32-U8LS.asm \
    347347        bs3-wc32-U8M.asm \
    348        bs3-c32-Trap32Generic.asm
     348        bs3-c32-Trap32Generic.asm
    349349
    350350# The 64-bit BS3Kit library.
     
    355355bs3kit-common-64_ASDEFS   = RT_ASMDEFS_INC_FIRST_FILE
    356356bs3kit-common-64_SOURCES  = $(VBOX_BS3KIT_COMMON_SOURCES) \
    357        bs3-cmn-PagingMapRamAbove4GForLM.c \
    358        bs3-cmn-SwitchHlpConvFlatRetToRetfProtMode.asm \
    359        bs3-c64-Trap64Generic.asm \
    360        ../../../Runtime/common/asm/ASMGetIDTR.asm \
    361        ../../../Runtime/common/asm/ASMSetIDTR.asm \
    362        ../../../Runtime/common/asm/ASMGetGDTR.asm \
    363        ../../../Runtime/common/asm/ASMSetGDTR.asm \
     357        bs3-cmn-PagingMapRamAbove4GForLM.c \
     358        bs3-cmn-SwitchHlpConvFlatRetToRetfProtMode.asm \
     359        bs3-c64-Trap64Generic.asm \
     360        ../../../Runtime/common/asm/ASMGetIDTR.asm \
     361        ../../../Runtime/common/asm/ASMSetIDTR.asm \
     362        ../../../Runtime/common/asm/ASMGetGDTR.asm \
     363        ../../../Runtime/common/asm/ASMSetGDTR.asm
    364364
    365365
     
    406406        bs3-mode-TestDoModesByMax.c \
    407407        bs3-mode-TestDoModesHlp.asm \
    408         bs3-mode-BiosInt15hE820.asm \
     408        bs3-mode-BiosInt15hE820.asm
    409409
    410410# The 16-bit real mode BS3Kit library.
     
    418418        bs3-mode-TestDoModesStub.asm \
    419419        bs3-mode-TestDoModesByOneStub.asm \
    420         bs3-mode-TestDoModesByMaxStub.asm \
     420        bs3-mode-TestDoModesByMaxStub.asm
    421421
    422422
     
    430430        bs3-mode-TestDoModesStub.asm \
    431431        bs3-mode-TestDoModesByOneStub.asm \
    432         bs3-mode-TestDoModesByMaxStub.asm \
     432        bs3-mode-TestDoModesByMaxStub.asm
    433433#       bs3-mode-CpuDetect.asm
    434434
     
    441441        bs3-mode-TestDoModesStub.asm \
    442442        bs3-mode-TestDoModesByOneStub.asm \
    443         bs3-mode-TestDoModesByMaxStub.asm \
     443        bs3-mode-TestDoModesByMaxStub.asm
    444444
    445445# The v86 BS3Kit library for 16-bit protected kernel+tss.
     
    451451        bs3-mode-TestDoModesStub.asm \
    452452        bs3-mode-TestDoModesByOneStub.asm \
    453         bs3-mode-TestDoModesByMaxStub.asm \
     453        bs3-mode-TestDoModesByMaxStub.asm
    454454
    455455# The 32-bit BS3Kit library for 32-bit protected kernel+tss.
     
    469469        bs3-mode-TestDoModesStub.asm \
    470470        bs3-mode-TestDoModesByOneStub.asm \
    471         bs3-mode-TestDoModesByMaxStub.asm \
     471        bs3-mode-TestDoModesByMaxStub.asm
    472472
    473473# The v8086 BS3Kit library for 32-bit protected kernel+tss.
     
    487487        bs3-mode-TestDoModesStub.asm \
    488488        bs3-mode-TestDoModesByOneStub.asm \
    489         bs3-mode-TestDoModesByMaxStub.asm \
     489        bs3-mode-TestDoModesByMaxStub.asm
    490490
    491491# The 32-bit BS3Kit library for 16-bit paged protected kernel+tss.
     
    519519        bs3-mode-TestDoModesStub.asm \
    520520        bs3-mode-TestDoModesByOneStub.asm \
    521         bs3-mode-TestDoModesByMaxStub.asm \
     521        bs3-mode-TestDoModesByMaxStub.asm
    522522
    523523# The v8086 BS3Kit library for 32-bit paged protected kernel+tss.
     
    538538        bs3-mode-TestDoModesStub.asm \
    539539        bs3-mode-TestDoModesByOneStub.asm \
    540         bs3-mode-TestDoModesByMaxStub.asm \
     540        bs3-mode-TestDoModesByMaxStub.asm
    541541
    542542# The 16-bit BS3Kit library for 16-bit PAE paged protected kernel+tss.
     
    569569        bs3-mode-TestDoModesStub.asm \
    570570        bs3-mode-TestDoModesByOneStub.asm \
    571         bs3-mode-TestDoModesByMaxStub.asm \
     571        bs3-mode-TestDoModesByMaxStub.asm
    572572
    573573# The v8086 BS3Kit library for 32-bit PAE paged protected kernel+tss.
     
    587587        bs3-mode-TestDoModesStub.asm \
    588588        bs3-mode-TestDoModesByOneStub.asm \
    589         bs3-mode-TestDoModesByMaxStub.asm \
     589        bs3-mode-TestDoModesByMaxStub.asm
    590590
    591591# The 32-bit long mode BS3Kit library.
     
    754754
    755755bs3kit-update:: bs3kit-autostubs.kmk bs3kit-mangling-code-define.h bs3kit-mangling-code-undef.h
    756 .NOTPARALLEL:   bs3kit-autostubs.kmk bs3kit-mangling-code-define.h bs3kit-mangling-code-undef.h
     756.NOTPARALLEL: bs3kit-autostubs.kmk bs3kit-mangling-code-define.h bs3kit-mangling-code-undef.h
    757757
    758758
  • trunk/src/VBox/ValidationKit/common/Makefile.kmk

    r98103 r98418  
    6969VBOX_VALIDATIONKIT_PYTHON_SOURCES += \
    7070        $(wildcard \
    71                 $(PATH_SUB_CURRENT)/*.py \
    72                 $(PATH_SUB_CURRENT)/*/*.py \
    73                 )
     71        $(PATH_SUB_CURRENT)/*.py \
     72        $(PATH_SUB_CURRENT)/*/*.py \
     73        )
    7474
    7575$(evalcall def_vbox_validationkit_process_python_sources)
  • trunk/src/VBox/ValidationKit/docs/Makefile.kmk

    r98103 r98418  
    4848  endif
    4949 endif
    50  if1of ($(KBUILD_HOST),win)
     50 if1of ($(KBUILD_HOST), win)
    5151  VBOX_RST2HTML := $(VBOX_BLD_PYTHON) $(VBOX_RST2HTML)
    5252 endif
     
    5454
    5555GENERATED_FILES = \
    56     AutomaticTestingRevamp.html \
    57     VBoxValidationKitReadMe.html \
    58     VBoxAudioValidationKitReadMe.html \
    59     TestBoxImaging.html
     56        AutomaticTestingRevamp.html \
     57        VBoxValidationKitReadMe.html \
     58        VBoxAudioValidationKitReadMe.html \
     59        TestBoxImaging.html
    6060
    6161all: $(GENERATED_FILES)
  • trunk/src/VBox/ValidationKit/testboxscript/Makefile.kmk

    r98103 r98418  
    6464        linux/testboxscript-service.sh=>linux/testboxscript-service.sh
    6565testboxscript_SOURCES.linux = \
    66        ../../Installer/linux/routines.sh=>linux/setup-installer-routines.sh \
     66        ../../Installer/linux/routines.sh=>linux/setup-installer-routines.sh \
    6767        linux/setup-routines.sh=>linux/setup-routines.sh
    6868
    6969testboxscript_SOURCES.solaris = \
    70         solaris/setup-routines.sh=>solaris/setup-routines.sh \
     70        solaris/setup-routines.sh=>solaris/setup-routines.sh
    7171
    7272testboxscript_SOURCES.win = \
  • trunk/src/VBox/ValidationKit/tests/api/Makefile.kmk

    r98078 r98418  
    5454ifndef VBOX_OSE
    5555 ValidationKitTestsApi_EXEC_SOURCES += \
    56         $(PATH_SUB_CURRENT)/tdCloud1.py \
    57         $(PATH_SUB_CURRENT)/tdOciConnection1.py \
     56        $(PATH_SUB_CURRENT)/tdCloud1.py \
     57        $(PATH_SUB_CURRENT)/tdOciConnection1.py \
    5858        $(PATH_SUB_CURRENT)/tdOciExport1.py \
    59         $(PATH_SUB_CURRENT)/tdOciImage1.py \
     59        $(PATH_SUB_CURRENT)/tdOciImage1.py \
    6060        $(PATH_SUB_CURRENT)/tdOciImport1.py \
    61         $(PATH_SUB_CURRENT)/tdOciInstance1.py \
     61        $(PATH_SUB_CURRENT)/tdOciInstance1.py \
    6262        $(PATH_SUB_CURRENT)/tdOciProfile1.py
    6363endif
    6464ValidationKitTestsApi_SOURCES := \
    6565        $(wildcard \
    66                 $(PATH_SUB_CURRENT)/*.ova \
    67                 )
     66        $(PATH_SUB_CURRENT)/*.ova \
     67        )
    6868
    6969VBOX_VALIDATIONKIT_PYTHON_SOURCES += $(ValidationKitTestsApi_EXEC_SOURCES)
  • trunk/src/VBox/ValidationKit/utils/TestExecServ/Makefile.kmk

    r98103 r98418  
    4242TestExecService_TEMPLATE = VBoxValidationKitR3
    4343ifdef VBOX_WITH_AUTOMATIC_DEFS_QUOTING
    44 TestExecService_DEFS = \
    45         KBUILD_TARGET="$(KBUILD_TARGET)" \
    46         KBUILD_TARGET_ARCH="$(KBUILD_TARGET_ARCH)"
     44 TestExecService_DEFS = \
     45        KBUILD_TARGET="$(KBUILD_TARGET)" \
     46        KBUILD_TARGET_ARCH="$(KBUILD_TARGET_ARCH)"
    4747else
    48 TestExecService_DEFS = \
    49         KBUILD_TARGET=\"$(KBUILD_TARGET)\" \
    50         KBUILD_TARGET_ARCH=\"$(KBUILD_TARGET_ARCH)\"
     48 TestExecService_DEFS = \
     49        KBUILD_TARGET=\"$(KBUILD_TARGET)\" \
     50        KBUILD_TARGET_ARCH=\"$(KBUILD_TARGET_ARCH)\"
    5151endif
    5252TestExecService_SOURCES = \
     
    5555
    5656ifn1of ($(KBUILD_TARGET), os2)
    57 TestExecService_SOURCES += \
     57 TestExecService_SOURCES += \
    5858        TestExecServiceSerial.cpp
    5959endif
  • trunk/src/VBox/ValidationKit/utils/audio/Makefile.kmk

    r98255 r98418  
    6464  endif
    6565 endif
    66  if    defined(VBOX_WITH_ADDITIONS_SHIPPING_AUDIO_TEST) \
    67     && defined(VBOX_WITH_ADDITIONS) \
    68     && !defined(VBOX_WITH_ADDITIONS_FROM_BUILD_SERVER) \
    69     && (defined(VBOX_ONLY_ADDITIONS) || !defined(VBOX_ONLY_BUILD))
     66 if   defined(VBOX_WITH_ADDITIONS_SHIPPING_AUDIO_TEST) \
     67   && defined(VBOX_WITH_ADDITIONS) \
     68   && !defined(VBOX_WITH_ADDITIONS_FROM_BUILD_SERVER) \
     69   && (defined(VBOX_ONLY_ADDITIONS) || !defined(VBOX_ONLY_BUILD))
    7070  PROGRAMS += vkatadd
    7171 endif
     
    200200
    201201
    202 if defined(VBOX_WITH_TESTCASES) && !defined(VBOX_ONLY_ADDITIONS) && !defined(VBOX_ONLY_SDK) \
     202if   defined(VBOX_WITH_TESTCASES) && !defined(VBOX_ONLY_ADDITIONS) && !defined(VBOX_ONLY_SDK) \
    203203  && 0 ## @todo r=bird: Disabled because nobody really wants or needs to run this during build other than Andy.
    204        ##               And more importantly, it breaks the build (os2, bsd*).
     204 ##               And more importantly, it breaks the build (os2, bsd*).
    205205
    206206 PROGRAMS += tstVkatHostSelftest
  • trunk/src/VBox/ValidationKit/utils/clipboard/Makefile.kmk

    r98103 r98418  
    4545ClipUtil_SOURCES  = ClipUtil.cpp
    4646ifn1of ($(KBUILD_TARGET), darwin os2 win)
    47 ClipUtil_LIBPATH = $(VBOX_LIBPATH_X11)
    48 ClipUtil_LIBS     = X11 Xmu
     47 ClipUtil_LIBPATH = $(VBOX_LIBPATH_X11)
     48 ClipUtil_LIBS    = X11 Xmu
    4949endif
    5050
  • trunk/src/VBox/ValidationKit/utils/cpu/Makefile.kmk

    r98103 r98418  
    6060if1of ($(KBUILD_TARGET_ARCH), x86 amd64)
    6161 ifneq ($(KBUILD_HOST),os2)
    62  PROGRAMS += cidet-app
     62  PROGRAMS += cidet-app
    6363 endif
    6464 cidet-app_TEMPLATE = VBoxValidationKitR3
  • trunk/src/VBox/ValidationKit/utils/misc/Makefile.kmk

    r98255 r98418  
    4242#
    4343PROGRAMS += LoadGenerator
    44 if1of ($(KBUILD_TARGET_ARCH),amd64)
     44if1of ($(KBUILD_TARGET_ARCH), amd64)
    4545 ifdef VBOX_WITH_R0_MODULES
    4646  ifdef VBOX_WITH_VBOXR0_AS_DLL
    47 DLLS    += loadgeneratorR0
     47   DLLS += loadgeneratorR0
    4848  else
    49 SYSMODS += loadgeneratorR0
     49   SYSMODS += loadgeneratorR0
    5050  endif
    51 loadgeneratorR0_TEMPLATE := VBoxValidationKitR0
    52 loadgeneratorR0_SOURCES := loadgeneratorR0.cpp
     51  loadgeneratorR0_TEMPLATE := VBoxValidationKitR0
     52  loadgeneratorR0_SOURCES := loadgeneratorR0.cpp
    5353 endif
    54 LoadGenerator_TEMPLATE := VBoxValidationKitR3SupDrv
    55 LoadGenerator_DEFS     := WITH_IPI_LOAD_GEN
     54 LoadGenerator_TEMPLATE := VBoxValidationKitR3SupDrv
     55 LoadGenerator_DEFS    := WITH_IPI_LOAD_GEN
    5656else
    57 LoadGenerator_TEMPLATE := VBoxValidationKitR3
     57 LoadGenerator_TEMPLATE := VBoxValidationKitR3
    5858endif
    5959LoadGenerator_SOURCES  := loadgenerator.cpp
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