VirtualBox

Changeset 59866 in vbox for trunk


Ignore:
Timestamp:
Feb 29, 2016 10:27:53 AM (9 years ago)
Author:
vboxsync
Message:

bs3kit: Updates

Location:
trunk/src/VBox/ValidationKit/bootsectors
Files:
4 edited

Legend:

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

    r59863 r59866  
    230230bs3-cpu-basic-2_SOURCES = \
    231231        bs3kit/bs3-first-rm.asm \
    232         bs3-cpu-basic-2-c.c
    233 #       bs3-cpu-basic-2.asm
     232        bs3-cpu-basic-2-c.c \
     233        bs3-cpu-basic-2.asm
    234234endif
    235235
  • trunk/src/VBox/ValidationKit/bootsectors/bs3-cpu-basic-2-c.c

    r59863 r59866  
    3232
    3333
     34FNBS3TESTDOMODE               bs3CpuBasic2_iret_c16;
     35FNBS3TESTDOMODE BS3_FAR_CODE  bs3CpuBasic2_iret_c32;
     36FNBS3TESTDOMODE BS3_FAR_CODE  bs3CpuBasic2_iret_c64;
     37
     38
     39static const BS3TESTMODEENTRY g_aModeTest[] =
     40{
     41    { "iret", bs3CpuBasic2_iret_c16,
     42        bs3CpuBasic2_iret_c16, bs3CpuBasic2_iret_c32, bs3CpuBasic2_iret_c16,
     43        bs3CpuBasic2_iret_c32, bs3CpuBasic2_iret_c16, bs3CpuBasic2_iret_c16 }
     44};
     45
    3446
    3547BS3_DECL(void) Main_rm()
     
    3850    Bs3TestInit("bs3-cpu-basic-2");
    3951
     52    //Bs3TestDoModes(g_aModeTest, RT_ELEMENTS(g_aModeTest));
     53
    4054    Bs3TestTerm();
    41 
    4255}
    4356
  • trunk/src/VBox/ValidationKit/bootsectors/bs3-cpu-basic-2-template.mac

    r59863 r59866  
    1 %include "bs3kit-template-header.mac"   ; setup environment
    21
    32
     
    76
    87
     8
     9%include "bs3kit-template-header.mac"   ; setup environment
     10
     11
     12
     13
     14BS3_PROC_BEGIN_CMN bs3CpuBasic2_iret
     15        hlt
     16        xor     al, al
     17        ret
     18BS3_PROC_END_CMN   bs3CpuBasic2_iret
     19
     20
     21
     22
     23
    924%include "bs3kit-template-footer.mac"   ; reset environment
    1025
  • trunk/src/VBox/ValidationKit/bootsectors/bs3-cpu-basic-2.asm

    r59863 r59866  
    3131%include "bs3kit.mac"
    3232
    33 ;
    34 ; Segment defs, grouping and related variables.
    35 ; Defines the entry point 'start' as well, leaving us in BS3TEXT16.
    36 ;
    37 %include "bs3-first-common.mac"
    3833
     34BS3_INSTANTIATE_COMMON_TEMPLATE "bs3-cpu-basic-2-template.mac"
    3935
    40 ;
    41 ; We start in real mode.
    42 ;
    43 %define TMPL_RM
    44 %include "bs3kit-template-header.mac"
    45 
    46 BS3_EXTERN_DATA16 g_uBs3CpuDetected
    47 BS3_BEGIN_TEXT16
    48 BS3_EXTERN_CMN  Bs3Shutdown
    49 extern          _Bs3InitAll_rm
    50 
    51 
    52 BS3_BEGIN_TEXT16
    53 BS3_PROC_BEGIN Bs3CpuBasic2_Main
    54         push    word 0                  ; zero return address.
    55         push    word 0                  ; zero caller BP
    56         mov     bp, sp
    57         sub     sp, 20h                 ; reserve 20h for 64-bit calls (we're doing them MSC style, remember).
    58 
    59         call    _Bs3InitAll_rm
    60 
    61         ;
    62         ; Start testing.
    63         ;
    64 
    65 
    66 
    67         ;
    68         ; Done.
    69         ;
    70 .shutdown:
    71         call    Bs3Shutdown
    72         jmp     .shutdown
    73 BS3_PROC_END   Bs3CpuBasic2_Main
    74 
    75 
    76 ;
    77 ; Instantiate the test template code.
    78 ;
    79 %include "bs3kit-template-footer.mac"  ; reset the initial environemnt.
    80 
    81 
    82 BS3_INSTANTIATE_TEMPLATE_WITH_WEIRD_ONES "bs3-cpu-basic-2-template.mac"
    83 
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