VirtualBox

Changeset 9714 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jun 16, 2008 11:58:28 AM (17 years ago)
Author:
vboxsync
Message:

Zero out high dword of rsp as well.

File:
1 edited

Legend:

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

    r9713 r9714  
    264264    mov     eax, [esp + 14h + ESPOFF]           ; esp
    265265    mov     [esp + CPUMCTXCORE.esp], eax
     266%if GC_ARCH_BITS == 64
     267    ; zero out the high dword
     268    mov     dword [esp + CPUMCTXCORE.esp + 4], 0
     269%endif
    266270    mov     eax, [esp + 18h + ESPOFF]           ; ss
    267271    mov     dword [esp + CPUMCTXCORE.ss], eax
     
    765769    mov     eax, [esp + 10h + ESPOFF]           ; esp
    766770    mov     [esp + CPUMCTXCORE.esp], eax
     771%if GC_ARCH_BITS == 64
     772    ; zero out the high dword
     773    mov     dword [esp + CPUMCTXCORE.esp + 4], 0
     774%endif
    767775    mov     eax, dword [esp + 14h + ESPOFF]     ; ss
    768776    mov     [esp + CPUMCTXCORE.ss], eax
     
    10781086    mov     eax, [ecx + VBOXTSS.esp]
    10791087    mov     [esp + CPUMCTXCORE.esp], eax
     1088%if GC_ARCH_BITS == 64
     1089    ; zero out the high dword
     1090    mov     dword [esp + CPUMCTXCORE.esp + 4], 0
     1091%endif
    10801092    mov     eax, [ecx + VBOXTSS.ecx]
    10811093    mov     [esp + CPUMCTXCORE.ecx], 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