VirtualBox

Changeset 9411 in vbox for trunk/src/VBox/VMM/VMMSwitcher


Ignore:
Timestamp:
Jun 5, 2008 11:41:38 AM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
31649
Message:

Use a union for esp & rsp, so they are in-sync.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMSwitcher/AMD64ToPAE.asm

    r8155 r9411  
    453453    lidt    [edx + CPUM.Hyper.idtr]
    454454
    455     ; Setup stack
     455    ; Setup stack; use the lss_esp, ss pair for lss
    456456    DEBUG_CHAR('3')
    457     lss     esp, [edx + CPUM.Hyper.esp]
     457    mov     eax, [edx + CPUM.Hyper.esp]
     458    mov     [edx + CPUM.Hyper.lss_esp], eax
     459    lss     esp, [edx + CPUM.Hyper.lss_esp]
    458460
    459461    ; Restore TSS selector; must mark it as not busy before using ltr (!)
  • trunk/src/VBox/VMM/VMMSwitcher/PAEand32Bit.mac

    r8155 r9411  
    289289    mov     fs, eax
    290290
    291     ; Setup stack
     291    ; Setup stack; use the lss_esp, ss pair for lss
    292292    DEBUG_CHAR('3')
     293    mov     eax, [edx + CPUM.Hyper.esp]
     294    mov     [edx + CPUM.Hyper.lss_esp], eax
    293295    lss     esp, [edx + CPUM.Hyper.esp]
    294296
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