VirtualBox

Changeset 159 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jan 18, 2007 6:09:17 PM (18 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
17613
Message:

Moved iret log statement up

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/PATM/PATMA.asm

    r156 r159  
    10411041    mov     dword [ss:PATM_INTERRUPTFLAG], 0
    10421042    pushfd
     1043
     1044%ifdef PATM_LOG_IF_CHANGES
     1045    push    eax
     1046    push    ecx
     1047    push    edx
     1048    lea     edx, dword [ss:esp+4]        ;+ pushed flags -> iret eip
     1049    mov     eax, PATM_ACTION_LOG_IRET
     1050    lock    or dword [ss:PATM_PENDINGACTION], eax
     1051    mov     ecx, PATM_ACTION_MAGIC
     1052    db      0fh, 0bh        ; illegal instr (hardcoded assumption in PATMHandleIllegalInstrTrap)
     1053    pop     edx
     1054    pop     ecx
     1055    pop     eax
     1056%endif
     1057
    10431058    test    dword [esp], X86_EFL_NT
    10441059    jnz near iret_fault1
     
    10781093    ; Set IF again; below we make sure this won't cause problems.
    10791094    or      dword [ss:PATM_VMFLAGS], X86_EFL_IF
    1080 
    1081 %ifdef PATM_LOG_IF_CHANGES
    1082     push    eax
    1083     push    ecx
    1084     push    edx
    1085     lea     edx, dword [ss:esp+12+4]        ;3 pushes + pushed flags -> iret eip
    1086     mov     eax, PATM_ACTION_LOG_IRET
    1087     lock    or dword [ss:PATM_PENDINGACTION], eax
    1088     mov     ecx, PATM_ACTION_MAGIC
    1089     db      0fh, 0bh        ; illegal instr (hardcoded assumption in PATMHandleIllegalInstrTrap)
    1090     pop     edx
    1091     pop     ecx
    1092     pop     eax
    1093 %endif
    1094 
    10951095    popfd
    10961096
     
    11281128    DD      PATM_INTERRUPTFLAG
    11291129    DD      0
     1130%ifdef PATM_LOG_IF_CHANGES
     1131    DD      PATM_PENDINGACTION
     1132    DD      0
     1133%endif
    11301134    DD      PATM_VM_FORCEDACTIONS
    11311135    DD      0
     
    11361140    DD      PATM_VMFLAGS
    11371141    DD      0
    1138 %ifdef PATM_LOG_IF_CHANGES
    1139     DD      PATM_PENDINGACTION
    1140     DD      0
    1141 %endif
    11421142    DD      PATM_INHIBITIRQADDR
    11431143    DD      0
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