VirtualBox

Changeset 41321 in vbox for trunk/src/VBox/VMM


Ignore:
Timestamp:
May 15, 2012 8:11:21 PM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
77991
Message:

repaired tstMicro

Location:
trunk/src/VBox/VMM/testcase
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/testcase/tstMicro.cpp

    r38636 r41321  
    322322    RTPrintf("\n");
    323323    PrintHeaderTraps();
     324    /* don't disable rdtsc in R1/R2/R3! */
     325    CPUMR3SetCR4Feature(pVM, 0, ~X86_CR4_TSD);
    324326    for (i = TSTMICROTEST_TRAP_FIRST; i < TSTMICROTEST_MAX; i++)
    325327    {
     
    358360         * Cleanup.
    359361         */
     362        rc = VMR3PowerOff(pVM);
     363        if (!RT_SUCCESS(rc))
     364        {
     365            RTPrintf(TESTCASE ": error: failed to power off vm! rc=%Rrc\n", rc);
     366            rcRet++;
     367        }
    360368        rc = VMR3Destroy(pVM);
    361369        if (!RT_SUCCESS(rc))
    362370        {
    363             RTPrintf(TESTCASE ": error: failed to destroy vm! rc=%d\n", rc);
     371            RTPrintf(TESTCASE ": error: failed to destroy vm! rc=%Rrc\n", rc);
    364372            rcRet++;
    365373        }
     
    367375    else
    368376    {
    369         RTPrintf(TESTCASE ": fatal error: failed to create vm! rc=%d\n", rc);
     377        RTPrintf(TESTCASE ": fatal error: failed to create vm! rc=%Rrc\n", rc);
    370378        rcRet++;
    371379    }
  • trunk/src/VBox/VMM/testcase/tstMicroRCA.asm

    r37955 r41321  
    295295
    296296    ; Setup iret to execute r1 code.
    297     mov     eax, 02069h                 ; load ds and es with r3 selectors.
     297    mov     eax, 02069h                 ; load ds and es with R1 selectors.
    298298    mov     es, eax
    299299    mov     ds, eax
     
    309309    iret
    310310
    311     ; R3 code
     311    ; R1 code
    312312tstPTR1_R1:
    313313    RDTSC_ECX_EBP                       ; ebp:ecx - Rx enter time (0:0).
     
    335335
    336336    ; Setup iret to execute r2 code.
    337     mov     eax, 0206ah                 ; load ds and es with r3 selectors.
     337    mov     eax, 0206ah                 ; load ds and es with R2 selectors.
    338338    mov     es, eax
    339339    mov     ds, eax
     
    349349    iret
    350350
    351     ; R3 code
     351    ; R2 code
    352352tstPTR2_R2:
    353353    RDTSC_ECX_EBP                       ; ebp:ecx - Rx enter time (0:0).
     
    375375
    376376    ; Setup iret to execute r3 code.
    377     mov     eax, 0306bh                 ; load ds and es with r3 selectors.
     377    mov     eax, 0306bh                 ; load ds and es with R3 selectors.
    378378    mov     es, eax
    379379    mov     ds, eax
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette