Changeset 60000 in vbox for trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3-mode-EnteredMode.asm
- Timestamp:
- Mar 11, 2016 7:12:05 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3-mode-EnteredMode.asm
r59975 r60000 27 27 %include "bs3kit-template-header.mac" 28 28 29 %if TMPL_BITS == 16 30 BS3_EXTERN_DATA16 g_uBs3CpuDetected 31 %endif 29 32 BS3_EXTERN_DATA16 g_bBs3CurrentMode 30 33 TMPL_BEGIN_TEXT … … 152 155 153 156 ; 154 ; Load ds and es .155 ; 156 %if def TMPL_CMN_V86157 ; Load ds and es; clear fs and gs. 158 ; 159 %if BS3_MODE_IS_RM_OR_V86(TMPL_MODE) 157 160 mov ax, BS3_SEL_DATA16 158 161 %else … … 166 169 push ax 167 170 push ax 168 %endif 171 172 cmp byte [BS3_DATA16_WRT(g_uBs3CpuDetected)], BS3CPU_80286 173 jbe .skip_fs_gs 174 %endif 175 xor ax, ax 176 mov fs, ax 177 mov gs, ax 178 .skip_fs_gs: 169 179 170 180 ; … … 246 256 %endif 247 257 pop xAX 258 %ifdef BS3_STRICT 259 cmp xBP, xSP 260 je .return_stack_ok 261 int3 262 .return_stack_ok: 263 %endif 248 264 leave 249 265 ret
Note:
See TracChangeset
for help on using the changeset viewer.