Changeset 21963 in vbox for trunk/src/VBox
- Timestamp:
- Aug 4, 2009 3:12:59 PM (15 years ago)
- Location:
- trunk/src/VBox/VMM
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/Makefile.kmk
r21856 r21963 55 55 VMMR3_DEFS += VBOX_WITH_PDM_ASYNC_COMPLETION 56 56 endif 57 VMMR3_DEFS.darwin = VMM_R0_SWITCH_STACK 57 58 VMMR3_DEFS.darwin.x86 = \ 58 59 VBOX_WITH_2X_4GB_ADDR_SPACE VBOX_WITH_2X_4GB_ADDR_SPACE_IN_R3 \ … … 308 309 endif 309 310 ifeq ($(KBUILD_TARGET_ARCH),x86) 311 VMMGC_DEFS.darwin = VMM_R0_SWITCH_STACK 310 312 VMMGC_DEFS.darwin = \ 311 313 VBOX_WITH_2X_4GB_ADDR_SPACE VBOX_WITH_2X_4GB_ADDR_SPACE_IN_RC \ … … 418 420 VMMR0_DEFS += VBOX_WITH_MULTI_CORE 419 421 endif 422 VMMR0_DEFS.darwin = VMM_R0_SWITCH_STACK 420 423 VMMR0_DEFS.darwin.x86 = \ 421 424 VBOX_WITH_2X_4GB_ADDR_SPACE VBOX_WITH_2X_4GB_ADDR_SPACE_IN_R0 \ -
trunk/src/VBox/VMM/VMM.cpp
r21653 r21963 241 241 { 242 242 int rc = VINF_SUCCESS; 243 #ifdef VMM_R0_SWITCH_STACK 244 uint32_t fFlags = MMHYPER_AONR_FLAGS_KERNEL_MAPPING; 245 #else 246 uint32_t fFlags = 0; 247 #endif 243 248 244 249 for (VMCPUID idCpu = 0; idCpu < pVM->cCPUs; idCpu++) … … 247 252 248 253 #ifdef VBOX_STRICT_VMM_STACK 249 rc = MMR3HyperAllocOnceNoRel (pVM, PAGE_SIZE + VMM_STACK_SIZE + PAGE_SIZE, PAGE_SIZE, MM_TAG_VMM, (void **)&pVCpu->vmm.s.pbEMTStackR3);254 rc = MMR3HyperAllocOnceNoRelEx(pVM, PAGE_SIZE + VMM_STACK_SIZE + PAGE_SIZE, 250 255 #else 251 rc = MMR3HyperAllocOnceNoRel(pVM, VMM_STACK_SIZE, PAGE_SIZE, MM_TAG_VMM, (void **)&pVCpu->vmm.s.pbEMTStackR3); 252 #endif 256 rc = MMR3HyperAllocOnceNoRelEx(pVM, VMM_STACK_SIZE, 257 #endif 258 PAGE_SIZE, MM_TAG_VMM, fFlags, (void **)&pVCpu->vmm.s.pbEMTStackR3); 253 259 if (RT_SUCCESS(rc)) 254 260 {
Note:
See TracChangeset
for help on using the changeset viewer.