VirtualBox

Ignore:
Timestamp:
Apr 18, 2016 7:26:35 PM (9 years ago)
Author:
vboxsync
Message:

bs3kit: far updates.

File:
1 edited

Legend:

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

    r60554 r60556  
    2828
    2929BS3_EXTERN_DATA16 g_uBs3CpuDetected
    30 TMPL_BEGIN_TEXT
     30
    3131
    3232;;
     
    4242; @remarks  ASSUMES we're in ring-0 when not in some kind of real mode.
    4343;
    44 BS3_PROC_BEGIN_MODE Bs3CpuDetect, BS3_PBC_HYBRID_0_ARGS
     44; @note     We put the real mode version of this code in the RMTEXT16 segment
     45;           to save space elsewhere.  We generate a far call stub that goes
     46;           to the right segment.
     47;
     48%if TMPL_MODE == BS3_MODE_RM
     49BS3_BEGIN_RMTEXT16
     50BS3_PROC_BEGIN_MODE Bs3CpuDetect, BS3_PBC_FAR
     51%else
     52TMPL_BEGIN_TEXT
     53BS3_PROC_BEGIN_MODE Bs3CpuDetect, BS3_PBC_HYBRID
     54%endif
    4555CPU 8086
    4656        push    xBP
     
    297307BS3_PROC_END_MODE   Bs3CpuDetect
    298308
     309
     310%if TMPL_MODE == BS3_MODE_RM
     311BS3_BEGIN_TEXT16_NEARSTUBS
     312BS3_PROC_BEGIN_MODE Bs3CpuDetect, BS3_PBC_NEAR
     313        call far TMPL_FAR_NM(Bs3CpuDetect)
     314        ret
     315BS3_PROC_END_MODE   Bs3CpuDetect
     316%endif
     317
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