VirtualBox

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


Ignore:
Timestamp:
Nov 12, 2015 3:47:57 PM (9 years ago)
Author:
vboxsync
Message:

bs3kit: Converted a bit more stuff and decided to got with syscalls for screen output, at least for now.

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

Legend:

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

    r58667 r58675  
    306306        bs3-cmn-Shutdown.asm \
    307307        bs3-cmn-Panic.asm \
     308        bs3-cmn-PrintChr.asm \
    308309        bs3-cmn-PrintU32.asm \
     310        bs3-cmn-PrintStr.c \
    309311       bs3-cmn-PrintStrColonSpaces.asm \
    310312       bs3-cmn-PrintStrSpacesColonSpace.c \
     
    315317       bs3-cmn-MemPCpy.c \
    316318       bs3-cmn-MemMove.c \
     319       bs3-cmn-TestData.c \
     320       bs3-cmn-TestInit.c \
     321        bs3-cmn-TestSendStrCmd.asm \
     322        bs3-cmn-TestIsVmmDevTestingPresent.asm \
    317323
    318324# The BS3Kit library.
  • trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3-shutdown.c

    r58628 r58675  
    1111void Main_rm(void)
    1212{
     13    Bs3TestInit("bs3-shutdown");
     14
    1315    Bs3Shutdown();
    1416    return;
  • trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3kit.h

    r58667 r58675  
    175175 * @param   uValue      The 32-bit value.
    176176 */
    177 BS3_DECL(void) Bs3PrintU32_c16(uint32_t uValue); /**< @copydoc Bs3PrintU32_c16 */
     177BS3_DECL(void) Bs3PrintU32_c16(uint32_t uValue);
    178178BS3_DECL(void) Bs3PrintU32_c32(uint32_t uValue); /**< @copydoc Bs3PrintU32_c16 */
    179179BS3_DECL(void) Bs3PrintU32_c64(uint32_t uValue); /**< @copydoc Bs3PrintU32_c16 */
    180180#define Bs3PrintU32 BS3_CMN_NM(Bs3PrintU32) /**< Selects #Bs3PrintU32_c16, #Bs3PrintU32_c32 or #Bs3PrintU32_c64. */
     181
     182/**
     183 * Prints a string to the screen.
     184 *
     185 * @param   pszString       The string to print.
     186 */
     187BS3_DECL(void) Bs3PrintStr_c16(const char BS3_FAR *pszString);
     188BS3_DECL(void) Bs3PrintStr_c32(const char BS3_FAR *pszString); /**< @copydoc Bs3PrintStr_c16 */
     189BS3_DECL(void) Bs3PrintStr_c64(const char BS3_FAR *pszString); /**< @copydoc Bs3PrintStr_c16 */
     190#define Bs3PrintStr BS3_CMN_NM(Bs3PrintStr) /**< Selects #Bs3PrintStr_c16, #Bs3PrintStr_c32 or #Bs3PrintStr_c64. */
     191
     192/**
     193 * Prints a char to the screen.
     194 *
     195 * @param   ch              The character to print.
     196 */
     197BS3_DECL(void) Bs3PrintChr_c16(char ch);
     198BS3_DECL(void) Bs3PrintChr_c32(char ch); /**< @copydoc Bs3PrintChr_c16 */
     199BS3_DECL(void) Bs3PrintChr_c64(char ch); /**< @copydoc Bs3PrintChr_c16 */
     200#define Bs3PrintChr BS3_CMN_NM(Bs3PrintChr) /**< Selects #Bs3PrintChr_c16, #Bs3PrintChr_c32 or #Bs3PrintChr_c64. */
     201
    181202
    182203/**
     
    257278
    258279
     280
     281/**
     282 * Equivalent to RTTestCreate + RTTestBanner.
     283 *
     284 * @param   pszTest         The test name.
     285 */
     286BS3_DECL(void) Bs3TestInit_c16(const char BS3_FAR *pszTest);
     287BS3_DECL(void) Bs3TestInit_c32(const char BS3_FAR *pszTest); /**< @copydoc Bs3TestInit_c16 */
     288BS3_DECL(void) Bs3TestInit_c64(const char BS3_FAR *pszTest); /**< @copydoc Bs3TestInit_c16 */
     289#define Bs3TestInit BS3_CMN_NM(Bs3TestInit) /**< Selects #Bs3TestInit_c16, #Bs3TestInit_c32 or #Bs3TestInit_c64. */
     290
     291
    259292/** @} */
    260293
  • trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3kit.mac

    r58628 r58675  
    262262;;
    263263; Extern macro which mangles the common name correctly, redefining the unmangled
    264 ; name with to the mangled one for ease of use.
     264; name to the mangled one for ease of use.
    265265;
    266266; @param    %1  The unmangled common name.
     
    272272 %undef  %1
    273273 %define %1 BS3_CMN_NM(%1)
     274%endmacro
     275
     276;;
     277; Extern macro which mangles a DATA16 symbol correctly, redefining the
     278; unmangled name to the mangled one for ease of use.
     279;
     280; @param    %1  The unmangled common name.
     281;
     282; @remarks  Will change to the DATA16 segment, use must switch back afterwards!
     283;
     284%macro BS3_EXTERN_DATA16 1
     285 BS3_BEGIN_DATA16
     286 extern _ %+ %1
     287 %undef  %1
     288 %define %1  _ %+ %1
    274289%endmacro
    275290
     
    511526
    512527
    513 %endif
    514 
     528;; The system call vector.
     529%define BS3_TRAP_SYSCALL        20h
     530
     531;; @name System call numbers
     532;; @{
     533;; Print char (cl).
     534%define BS3_SYSCALL_PRINT_CHR   0ca110001h
     535;; @}
     536
     537%endif
     538
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