Changeset 59977 in vbox for trunk/src/VBox/ValidationKit
- Timestamp:
- Mar 10, 2016 7:58:08 AM (9 years ago)
- Location:
- trunk/src/VBox/ValidationKit/bootsectors/bs3kit
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3-cmn-SwitchTo16Bit.asm
r59949 r59977 50 50 ; Switch to ring-0 if v8086 mode. 51 51 mov ax, BS3_SYSCALL_TO_RING0 52 intBS3_TRAP_SYSCALL52 lock int BS3_TRAP_SYSCALL 53 53 54 54 .ret_16bit: … … 103 103 104 104 popfd 105 %if TMPL_BITS == 64 106 add sp, 4 107 %endif 105 TMPL_ONLY_64BIT_STMT pop ebx 108 106 pop ebx 109 %if TMPL_BITS == 64 110 add sp, 4 111 %endif 107 TMPL_ONLY_64BIT_STMT pop eax 112 108 pop eax 113 %if TMPL_BITS == 64 114 add sp, 4 115 %endif 109 TMPL_ONLY_64BIT_STMT add sp, 4 116 110 ret (TMPL_BITS - 16) / 8 ; Return and pop 2 or 6 bytes of "parameters" (unused return value) 117 111 -
trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3-mode-SwitchToRM.asm
r59975 r59977 70 70 cmp byte [BS3_DATA16_WRT(g_uBs3CpuDetected)], BS3CPU_80286 71 71 ja .do_386_prologue 72 push bp73 72 push ax 74 73 push bx … … 78 77 %endif 79 78 .do_386_prologue: 80 push sBP81 79 push sAX 82 80 push sBX … … 171 169 pop bp 172 170 %endif 173 %if TMPL_BITS != 64174 171 .do_386_epilogue: 175 172 popfd 173 TMPL_ONLY_64BIT_STMT pop ebx 176 174 pop ebx 175 TMPL_ONLY_64BIT_STMT pop eax 177 176 pop eax 178 %if 0 179 pop ebp 180 %else 181 add esp, 4 182 %endif 183 %else 184 pop eax 185 popfd 186 pop ebx 187 pop ebx 188 pop eax 189 pop eax 190 pop ebp 191 pop ebp 192 %endif 177 TMPL_ONLY_64BIT_STMT add sp, 4 193 178 retn (TMPL_BITS - 16) / 8 194 179 -
trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3kit-template-footer.mac
r59863 r59977 5 5 6 6 ; 7 ; Copyright (C) 2007-201 5Oracle Corporation7 ; Copyright (C) 2007-2016 Oracle Corporation 8 8 ; 9 9 ; This file is part of VirtualBox Open Source Edition (OSE), as … … 123 123 %undef sSI 124 124 125 %unmacro TMPL_ONLY_16BIT_STMT 1+ 126 %unmacro TMPL_ONLY_32BIT_STMT 1+ 127 %unmacro TMPL_ONLY_64BIT_STMT 1+ 128 -
trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3kit-template-header.mac
r59949 r59977 431 431 %endif 432 432 433 ;; @def TMPL_ONLY_16BIT_STMT 434 ; Version of BS3_ONLY_16BIT_STMT that follows the code template. 435 %if TMPL_BITS == 16 436 %macro TMPL_ONLY_16BIT_STMT 1+ 437 %1 438 %endmacro 439 %else 440 %macro TMPL_ONLY_16BIT_STMT 1+ 441 %endmacro 442 %endif 443 444 ;; @def TMPL_ONLY_32BIT_STMT 445 ; Version of BS3_ONLY_32BIT_STMT that follows the code template. 446 %if TMPL_BITS == 32 447 %macro TMPL_ONLY_32BIT_STMT 1+ 448 %1 449 %endmacro 450 %else 451 %macro TMPL_ONLY_32BIT_STMT 1+ 452 %endmacro 453 %endif 454 455 ;; @def TMPL_ONLY_64BIT_STMT 456 ; Version of BS3_ONLY_64BIT_STMT that follows the code template. 457 %if TMPL_BITS == 64 458 %macro TMPL_ONLY_64BIT_STMT 1+ 459 %1 460 %endmacro 461 %else 462 %macro TMPL_ONLY_64BIT_STMT 1+ 463 %endmacro 464 %endif 465 433 466 ; 434 467 ; Default code segment (changes BITS too).
Note:
See TracChangeset
for help on using the changeset viewer.