VirtualBox

Changeset 60367 in vbox for trunk


Ignore:
Timestamp:
Apr 7, 2016 2:58:16 AM (9 years ago)
Author:
vboxsync
Message:

bs3-cmn-TestIsVmmDevTestingPresent.asm: 286 fixes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3-cmn-TestIsVmmDevTestingPresent.asm

    r58675 r60367  
    2828%include "VBox/VMMDevTesting.mac"
    2929
     30;*********************************************************************************************************************************
     31;*  External Symbols                                                                                                             *
     32;*********************************************************************************************************************************
     33BS3_EXTERN_DATA16 g_uBs3CpuDetected
    3034TMPL_BEGIN_TEXT
     35
    3136
    3237;;
     
    4146        ; Check the response from the NOP port.
    4247        mov     dx, VMMDEV_TESTING_IOPORT_NOP
     48        cmp     byte [g_uBs3CpuDetected], BS3CPU_80386
     49        jb      .ancient_cpu
    4350        in      eax, dx
    4451        cmp     eax, VMMDEV_TESTING_NOP_RET
    45         mov     eax, 0
     52.set_ax_and_return:
     53        mov     ax, 0
    4654        jne     .return
    47         mov     eax, 1
     55        mov     ax, 1
    4856
    4957.return:
    5058        pop     xDX
    51         leave
     59        pop     xBP
    5260        BS3_CALL_CONV_EPILOG 2
    5361        ret
     62
     63.ancient_cpu:
     64        in      ax, dx
     65        cmp     ax, (VMMDEV_TESTING_NOP_RET & 0xffff)
     66        jmp     .set_ax_and_return
    5467BS3_PROC_END_CMN   bs3TestIsVmmDevTestingPresent
    5568
    56 
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