VirtualBox

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


Ignore:
Timestamp:
Mar 1, 2007 12:57:34 PM (18 years ago)
Author:
vboxsync
Message:

Enable WP later when returning to V86 code from our generic trap handler.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMGC/TRPMGCHandlersA.asm

    r1089 r1130  
    430430%endif
    431431
     432    ; restore guest state and start executing again.
     433    test    dword [esp + CPUMCTXCORE.eflags], X86_EFL_VM
     434    jnz short gt_V86Return
     435
    432436    ; enable WP
    433437    mov     eax, cr0
    434438    or      eax, X86_CR0_WRITE_PROTECT
    435439    mov     cr0, eax
    436 
    437     ; restore guest state and start executing again.
    438     test    dword [esp + CPUMCTXCORE.eflags], X86_EFL_VM
    439     jnz short gt_V86Return
    440440
    441441    mov     ecx, [esp + CPUMCTXCORE.ecx]
     
    511511    mov     eax, [esp + CPUMCTXCORE.eflags]
    512512    mov     [esp + 10h + ESPOFF], eax           ; eflags
     513
     514    ; enable WP
     515    mov     eax, cr0
     516    or      eax, X86_CR0_WRITE_PROTECT
     517    mov     cr0, eax
    513518
    514519    ; finally restore our scratch register eax
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