VirtualBox

Changeset 58799 in vbox for trunk/src/VBox/ValidationKit


Ignore:
Timestamp:
Nov 20, 2015 2:16:17 PM (9 years ago)
Author:
vboxsync
Message:

bs3kit: Early printf.

Location:
trunk/src/VBox/ValidationKit/bootsectors/bs3kit
Files:
2 added
4 edited

Legend:

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

    r58789 r58799  
    117117
    118118#
    119 # VCC elf cross compiling 64-bit gcc (mac): sudo port install x86_64-elf-gcc
     119# Visual C++ tool variant that runs the object converter afterwards.
    120120#
    121121TOOL_Bs3Vcc64 := Visual C++ 64-bit
     
    153153define TOOL_Bs3Vcc64_COMPILE_CXX_CMDS
    154154$(TOOL_$(VBOX_VCC_TOOL_STEM)AMD64_COMPILE_CXX_CMDS)
     155        $(QUIET)$(VBoxBs3ObjConverter_1_TARGET)  "$(obj)"
     156endef
     157
     158#
     159# 32-bit OpenWatcom C/C++ tool variant that runs the object converter afterwards
     160# to rename intrinsic functions so they don't clash with the 16-bit compiler.
     161#
     162TOOL_Bs3Ow32 := Visual C++ 64-bit
     163TOOL_Bs3Ow32_CC  = $(TOOL_OPENWATCOM_CC)
     164TOOL_Bs3Ow32_CXX = $(TOOL_OPENWATCOM_CXX)
     165TOOL_Bs3Ow32_COBJSUFF                 = $(TOOL_OPENWATCOM_COBJSUFF)
     166TOOL_Bs3Ow32_CFLAGS                   = $(TOOL_OPENWATCOM_CFLAGS)
     167TOOL_Bs3Ow32_CFLAGS.debug             = $(TOOL_OPENWATCOM_CFLAGS.debug)
     168TOOL_Bs3Ow32_CFLAGS.dbgopt            = $(TOOL_OPENWATCOM_CFLAGS.dbgopt)
     169TOOL_Bs3Ow32_CFLAGS.profile           = $(TOOL_OPENWATCOM_CFLAGS.profile)
     170TOOL_Bs3Ow32_CFLAGS.release           = $(TOOL_OPENWATCOM_CFLAGS.release)
     171TOOL_Bs3Ow32_CINCS                    = $(TOOL_OPENWATCOM_CINCS)
     172TOOL_Bs3Ow32_CDEFS                    =
     173TOOL_Bs3Ow32_COMPILE_C_DEPEND         = $(TOOL_OPENWATCOM_COMPILE_C_DEPEND) $(VBoxBs3ObjConverter_1_TARGET)
     174TOOL_Bs3Ow32_COMPILE_C_DEPORD         = $(TOOL_OPENWATCOM_COMPILE_C_DEPORD)
     175TOOL_Bs3Ow32_COMPILE_C_OUTPUT         = $(TOOL_OPENWATCOM_COMPILE_C_OUTPUT)
     176TOOL_Bs3Ow32_COMPILE_C_OUTPUT_MAYBE   = $(TOOL_OPENWATCOM_COMPILE_C_OUTPUT_MAYBE)
     177define TOOL_Bs3Ow32_COMPILE_C_CMDS
     178$(TOOL_OPENWATCOM_COMPILE_C_CMDS)
     179#       $(QUIET)$(VBoxBs3ObjConverter_1_TARGET) "$(obj)"
     180endef
     181
     182TOOL_Bs3Ow32_CXXOBJSUFF               = $(TOOL_OPENWATCOM_CXXOBJSUFF)
     183TOOL_Bs3Ow32_CXXFLAGS                 = $(TOOL_OPENWATCOM_CXXFLAGS)
     184TOOL_Bs3Ow32_CXXFLAGS.debug           = $(TOOL_OPENWATCOM_CXXFLAGS.debug)
     185TOOL_Bs3Ow32_CXXFLAGS.dbgopt          = $(TOOL_OPENWATCOM_CXXFLAGS.dbgopt)
     186TOOL_Bs3Ow32_CXXFLAGS.profile         = $(TOOL_OPENWATCOM_CXXFLAGS.profile)
     187TOOL_Bs3Ow32_CXXFLAGS.release         = $(TOOL_OPENWATCOM_CXXFLAGS.release)
     188TOOL_Bs3Ow32_CXXINCS                  = $(TOOL_OPENWATCOM_CXXINCS)
     189TOOL_Bs3Ow32_CXXDEFS                  =
     190TOOL_Bs3Ow32_COMPILE_CXX_DEPEND       = $(TOOL_OPENWATCOM_COMPILE_CXX_DEPEND) $(VBoxBs3ObjConverter_1_TARGET)
     191TOOL_Bs3Ow32_COMPILE_CXX_DEPORD       = $(TOOL_OPENWATCOM_COMPILE_CXX_DEPORD)
     192TOOL_Bs3Ow32_COMPILE_CXX_OUTPUT       = $(TOOL_OPENWATCOM_COMPILE_CXX_OUTPUT)
     193TOOL_Bs3Ow32_COMPILE_CXX_OUTPUT_MAYBE = $(TOOL_OPENWATCOM_COMPILE_CXX_OUTPUT_MAYBE)
     194define TOOL_Bs3Ow32_COMPILE_CXX_CMDS
     195$(TOOL_OPENWATCOM_COMPILE_CXX_CMDS)
    155196        $(QUIET)$(VBoxBs3ObjConverter_1_TARGET)  "$(obj)"
    156197endef
     
    296337TEMPLATE_VBoxBS3KitImg32_DEFS         = ARCH_BITS=32 IN_BS3KIT
    297338TEMPLATE_VBoxBS3KitImg32_ARTOOL       = OPENWATCOM
    298 TEMPLATE_VBoxBS3KitImg32_CTOOL        = OPENWATCOM
    299 TEMPLATE_VBoxBS3KitImg32_CXXTOOL      = OPENWATCOM
     339TEMPLATE_VBoxBS3KitImg32_CTOOL        = Bs3Ow32
     340TEMPLATE_VBoxBS3KitImg32_CXXTOOL      = Bs3Ow32
    300341TEMPLATE_VBoxBS3KitImg32_CFLAGS       = \
    301342        -nt=BS3TEXT32 -nd=BS3DATA32 -nc=BS3CODE32 -ecc -q -wx -zl -mf $(BS3_OW_DBG_OPT) -d1 -s -oa -ob -of -oi -ol -or -os
     
    363404        bs3-cmn-Panic.asm \
    364405        bs3-cmn-PrintChr.asm \
     406        bs3-cmn-PrintF.c \
    365407        bs3-cmn-PrintU32.asm \
    366408        bs3-cmn-PrintX32.asm \
     
    403445bs3kit-common-16_SOURCES  = $(VBOX_BS3KIT_COMMON_SOURCES) \
    404446        bs3-system-data.asm \
    405         bs3-rm-InitMemory.c
     447        bs3-rm-InitMemory.c \
     448        bs3-cmn-hexdigits.c
    406449
    407450# The 32-bit BS3Kit library.
  • trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3-first-rm.asm

    r58789 r58799  
    141141extern BS3_CMN_NM(Bs3Shutdown)
    142142extern NAME(Main_rm)
     143extern _Bs3PrintF_c32
    143144
    144145BS3_BEGIN_SYSTEM16
  • trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3-shutdown.c

    r58789 r58799  
    2222Bs3PrintX32(UINT32_C(0xfdb97531));
    2323Bs3PrintStr("\r\n");
     24
     25Bs3PrintF("Bs3PrintF: RX32=%RX32\n", UINT32_C(0xfdb97531));
    2426
    2527pvTmp2 = Bs3MemAlloc(BS3MEMKIND_REAL, _4K);
  • trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3kit.h

    r58789 r58799  
    642642
    643643
     644/** Lower case hex digits. */
     645extern char const BS3_DATA_NM(g_achBs3HexDigits)[16+1];
     646/** Upper case hex digits. */
     647extern char const BS3_DATA_NM(g_achBs3HexDigitsUpper)[16+1];
     648
     649
    644650#ifdef __WATCOMC__
    645651/**
     
    931937
    932938/**
     939 * Converts a 64-bit unsigned integer to a string.
     940 *
     941 * @returns The length for the formatted string.
     942 * @param   pszDst      The destination buffer.  Caller is responsible for
     943 *                      ensuring sufficient space.
     944 * @param   uValue      The 64-bit value.
     945 * @param   uBase       The base to format the number in: 2, 8,10 or 16.
     946 */
     947BS3_DECL(size_t) Bs3FormatU64_c16(char BS3_FAR *pszDst, uint64_t uValue, unsigned uBase);
     948BS3_DECL(size_t) Bs3FormatU64_c32(char BS3_FAR *pszDst, uint64_t uValue, unsigned uBase); /**< @copydoc Bs3FormatU64_c16 */
     949BS3_DECL(size_t) Bs3FormatU64_c64(char BS3_FAR *pszDst, uint64_t uValue, unsigned uBase); /**< @copydoc Bs3FormatU64_c16 */
     950#define Bs3FormatU64 BS3_CMN_NM(Bs3FormatU64) /**< Selects #Bs3FormatU64_c16, #Bs3FormatU64_c32 or #Bs3FormatU64_c64. */
     951
     952/**
    933953 * Formats and prints a string to the screen.
    934954 *
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