- Timestamp:
- Sep 3, 2013 2:16:05 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMSwitcher/LegacyandAMD64.mac
r48243 r48249 429 429 mov eax, cr3 430 430 mov [edx + CPUMCPU.Host.cr3], eax 431 mov eax, cr4 432 mov [edx + CPUMCPU.Host.cr4], eax 433 %if 0 ; paranoia 434 test eax, X86_CR4_VMXE 435 jz .vmxe_fine 436 mov eax, VERR_VMX_IN_VMX_ROOT_MODE 437 retf 438 .vmxe_fine: 439 %endif 431 mov esi, cr4 ; esi = cr4, we'll modify it further down. 432 mov [edx + CPUMCPU.Host.cr4], esi 440 433 441 434 DEBUG32_S_CHAR('c') … … 467 460 468 461 ;; 462 ;; Clean up CR4. X86_CR4_PGE, X86_CR4_PCE, X86_CR4_PCIDE (not really 463 ;; relevant for 32-bit, but whatever) and X86_CR4_VMXE must be cleared. 464 ;; 465 and esi, X86_CR4_VME | X86_CR4_PVI | X86_CR4_TSD | X86_CR4_DE | X86_CR4_PSE | X86_CR4_PAE \ 466 | X86_CR4_MCE | X86_CR4_OSFSXR | X86_CR4_OSXMMEEXCPT | X86_CR4_SMXE | X86_CR4_OSXSAVE 467 mov cr4, esi 468 469 ;; 469 470 ;; Load Intermediate memory context. 470 471 ;; … … 475 476 %ifdef VBOX_WITH_64ON32_CMOS_DEBUG 476 477 DEBUG_CMOS_TRASH_AL 17h 477 jmp .first_jmp478 times 65 db 90h479 .first_jmp:480 times 65 db 90h481 .second_jmp:482 DEBUG_CMOS_TRASH_AL 18h483 478 %endif 484 479
Note:
See TracChangeset
for help on using the changeset viewer.