VirtualBox

Ignore:
Timestamp:
Apr 19, 2016 3:01:35 AM (9 years ago)
Author:
vboxsync
Message:

bs3kit: move real mode version of Bs3TestDoModes out of the default 16-bit code segment.

File:
1 edited

Legend:

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

    r60554 r60557  
    4040; @remarks  Does not require 20h of parameter scratch space in 64-bit mode.
    4141;
     42%if TMPL_BITS == 16
     43BS3_GLOBAL_NAME_EX TMPL_NM(Bs3SwitchToPE16_Safe), function , 0
     44%endif
    4245BS3_PROC_BEGIN_MODE Bs3SwitchToPE16, BS3_PBC_NEAR
    4346%ifdef TMPL_PE16
     
    148151 %endif
    149152BS3_PROC_END_MODE   Bs3SwitchToPE16
     153
     154%else
     155;;
     156; Safe far return to non-BS3TEXT16 code.
     157BS3_EXTERN_CMN Bs3SwitchHlpConvFlatRetToRetfProtMode
     158BS3_BEGIN_TEXT16
     159BS3_SET_BITS TMPL_BITS
     160BS3_PROC_BEGIN_MODE Bs3SwitchToPE16_Safe, BS3_PBC_NEAR
     161        call        Bs3SwitchHlpConvFlatRetToRetfProtMode ; Special internal function.  Uses nothing, but modifies the stack.
     162        call        TMPL_NM(Bs3SwitchToPE16)
     163        BS3_SET_BITS 16
     164        retf
     165BS3_PROC_END_MODE   Bs3SwitchToPE16_Safe
    150166%endif
    151167
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