Changeset 33540 in vbox for trunk/src/VBox/VMM/VMMSwitcher
- Timestamp:
- Oct 28, 2010 9:27:05 AM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 67140
- Location:
- trunk/src/VBox/VMM/VMMSwitcher
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMSwitcher/AMD64andLegacy.mac
r30164 r33540 375 375 376 376 377 ; We're now on an identity mapped pages! in 32-bit compat ability mode.377 ; We're now on an identity mapped pages! in 32-bit compatibility mode. 378 378 BITS 32 379 379 ALIGNCODE(16) … … 897 897 DEBUG_CHAR('5') 898 898 899 ; Jump from compat ability mode to 64-bit mode.899 ; Jump from compatibility mode to 64-bit mode. 900 900 FIXUP FIX_ID_FAR32_TO_64BIT_MODE, 1, NAME(IDExit64Mode) - NAME(Start) 901 901 jmp 0ffffh:0fffffffeh … … 962 962 add rax, [rdx + r8 + CPUMCPU.Host.gdtr + 2] ; eax <- GDTR.address + descriptor offset. 963 963 mov ecx, [rax + 4] ; ecx <- 2nd descriptor dword 964 mov ebx, ecx ; save or ginal value964 mov ebx, ecx ; save original value 965 965 and ecx, ~0200h ; clear busy flag (2nd type2 bit) 966 966 mov [rax + 4], ccx ; not using xchg here is paranoia.. … … 1017 1017 1018 1018 ; Control registers. 1019 ; Would've liked to have these higher eup in case of crashes, but1019 ; Would've liked to have these higher up in case of crashes, but 1020 1020 ; the fpu stuff must be done before we restore cr0. 1021 1021 mov rcx, [rdx + r8 + CPUMCPU.Host.cr4] -
trunk/src/VBox/VMM/VMMSwitcher/PAEand32Bit.mac
r28800 r33540 199 199 and eax, X86_CR4_MCE | X86_CR4_PSE | X86_CR4_PAE | X86_CR4_VMXE 200 200 mov ecx, [edx + CPUMCPU.Guest.cr4] 201 ;; @todo Switcher cleanup: Determin base CR4 during CPUMR0Init / VMMR3SelectSwitcher putting it201 ;; @todo Switcher cleanup: Determine base CR4 during CPUMR0Init / VMMR3SelectSwitcher putting it 202 202 ; in CPUMCPU.Hyper.cr4 (which isn't currently being used). That should 203 203 ; simplify this operation a bit (and improve locality of the data). … … 838 838 add eax, [edx + CPUMCPU.Host.gdtr + 2] ; eax <- GDTR.address + descriptor offset. 839 839 mov ecx, [eax + 4] ; ecx <- 2nd descriptor dword 840 mov ebx, ecx ; save or ginal value840 mov ebx, ecx ; save original value 841 841 and ecx, ~0200h ; clear busy flag (2nd type2 bit) 842 842 mov [eax + 4], ecx ; not using xchg here is paranoia.. … … 919 919 920 920 ; Control registers. 921 ; Would've liked to have these higher eup in case of crashes, but921 ; Would've liked to have these higher up in case of crashes, but 922 922 ; the fpu stuff must be done before we restore cr0. 923 923 mov ecx, [edx + CPUMCPU.Host.cr4]
Note:
See TracChangeset
for help on using the changeset viewer.