VirtualBox

Changeset 59946 in vbox for trunk


Ignore:
Timestamp:
Mar 7, 2016 4:37:34 PM (9 years ago)
Author:
vboxsync
Message:

bs3kit: fixes (can switch to every weird mode now, though v86 requires some additional work).

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3-mode-SwitchToLM16.asm

    r59287 r59946  
    6666
    6767        extern  _Bs3SwitchTo16Bit_c32
     68 %if TMPL_BITS == 16
     69        sub     esp, 2
     70        shr     dword [esp], 16
     71 %elif TMPL_BITS == 64
     72        pop     dword [esp + 4]
     73 %endif
    6874        jmp     _Bs3SwitchTo16Bit_c32
    6975%endif
  • trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3-mode-TestDoModes.c

    r59941 r59946  
    172172{
    173173    bool const      fDoV86Mode    = false;
    174     uint8_t const   bCpuType      = BS3_DATA_NM(g_uBs3CpuDetected) & BS3CPU_TYPE_MASK;
    175     bool const      fHavePae      = RT_BOOL(BS3_DATA_NM(g_uBs3CpuDetected) & BS3CPU_F_PAE);
    176     bool const      fHaveLongMode = RT_BOOL(BS3_DATA_NM(g_uBs3CpuDetected) & BS3CPU_F_LONG_MODE);
     174    uint16_t const  uCpuDetected  = BS3_DATA_NM(g_uBs3CpuDetected);
     175    uint8_t const   bCpuType      = uCpuDetected & BS3CPU_TYPE_MASK;
     176    bool const      fHavePae      = RT_BOOL(uCpuDetected & BS3CPU_F_PAE);
     177    bool const      fHaveLongMode = RT_BOOL(uCpuDetected & BS3CPU_F_LONG_MODE);
    177178    unsigned        i;
    178179
     180#if 1 /* debug. */
     181    Bs3Printf("Bs3TestDoModes: uCpuDetected=%#x fHavePae=%d fHaveLongMode=%d\n", uCpuDetected, fHavePae, fHaveLongMode);
     182#endif
    179183    bs3TestWarnAboutSkippedModes(paEntries, cEntries, bCpuType, fHavePae, fHaveLongMode);
    180184
  • trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3-mode-TestDoModesHlp.asm

    r59941 r59946  
    8181; @param    xAX     Where to jump to for the main event.
    8282;
    83 TMPL_NM(bs3TestCallDoerPrologue):
     83BS3_GLOBAL_NAME_EX TMPL_NM(bs3TestCallDoerPrologue), , 0
    8484        BS3_CALL_CONV_PROLOG 1
    8585        push    xBP
     
    120120; @param    xAX     Return code.
    121121;
    122 TMPL_NM(bs3TestCallDoerEpilogue):
     122BS3_GLOBAL_NAME_EX TMPL_NM(bs3TestCallDoerEpilogue), , 0
    123123        ; Restore registers.
    124124%if TMPL_BITS == 16
  • trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3kit-template-header.mac

    r59863 r59946  
    330330%elif TMPL_MODE == BS3_MODE_PAE32_16
    331331 %define TMPL_PAE32_16
    332  %define TMPL_MODE_STR          "32-bit pae, 32-bit"
     332 %define TMPL_MODE_STR          "32-bit pae, 16-bit"
    333333 %define TMPL_NM(Name)          _ %+ Name %+ _pae32_16
    334334 %define TMPL_MODE_LNAME        pae32_16
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