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_V86.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_V86_Safe), function , 0
     44%endif
    4245BS3_PROC_BEGIN_MODE Bs3SwitchToPE16_V86, BS3_PBC_NEAR
    4346%ifdef TMPL_PE16_V86
     
    9598 %endif
    9699BS3_PROC_END_MODE   Bs3SwitchToPE16_V86
     100
     101%else
     102;;
     103; Safe far return to non-BS3TEXT16 code.
     104BS3_EXTERN_CMN Bs3SwitchHlpConvFlatRetToRetfProtMode
     105BS3_BEGIN_TEXT16
     106BS3_SET_BITS TMPL_BITS
     107BS3_PROC_BEGIN_MODE Bs3SwitchToPE16_V86_Safe, BS3_PBC_NEAR
     108        call        Bs3SwitchHlpConvFlatRetToRetfProtMode ; Special internal function.  Uses nothing, but modifies the stack.
     109        call        TMPL_NM(Bs3SwitchToPE16_V86)
     110        BS3_SET_BITS 16
     111        retf
     112BS3_PROC_END_MODE   Bs3SwitchToPE16_V86_Safe
    97113%endif
    98114
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