- Timestamp:
- Apr 7, 2016 2:58:16 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3-cmn-TestIsVmmDevTestingPresent.asm
r58675 r60367 28 28 %include "VBox/VMMDevTesting.mac" 29 29 30 ;********************************************************************************************************************************* 31 ;* External Symbols * 32 ;********************************************************************************************************************************* 33 BS3_EXTERN_DATA16 g_uBs3CpuDetected 30 34 TMPL_BEGIN_TEXT 35 31 36 32 37 ;; … … 41 46 ; Check the response from the NOP port. 42 47 mov dx, VMMDEV_TESTING_IOPORT_NOP 48 cmp byte [g_uBs3CpuDetected], BS3CPU_80386 49 jb .ancient_cpu 43 50 in eax, dx 44 51 cmp eax, VMMDEV_TESTING_NOP_RET 45 mov eax, 0 52 .set_ax_and_return: 53 mov ax, 0 46 54 jne .return 47 mov eax, 155 mov ax, 1 48 56 49 57 .return: 50 58 pop xDX 51 leave59 pop xBP 52 60 BS3_CALL_CONV_EPILOG 2 53 61 ret 62 63 .ancient_cpu: 64 in ax, dx 65 cmp ax, (VMMDEV_TESTING_NOP_RET & 0xffff) 66 jmp .set_ax_and_return 54 67 BS3_PROC_END_CMN bs3TestIsVmmDevTestingPresent 55 68 56
Note:
See TracChangeset
for help on using the changeset viewer.