Changeset 8115 in vbox
- Timestamp:
- Apr 17, 2008 4:57:00 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR0/HWACCMR0.cpp
r7574 r8115 315 315 /** 316 316 * Checks the error code array filled in for each cpu in the system. 317 * 317 * 318 318 * @returns VBox status code. 319 319 * @param paRc Error code array … … 353 353 memset(aRc, 0, sizeof(aRc)); 354 354 int rc = RTMpOnAll(HWACCMR0DisableCPU, aRc, NULL); 355 Assert RC(rc);355 Assert(RT_SUCCESS(rc) || rc == VERR_NOT_SUPPORTED); 356 356 357 357 /* Free the per-cpu pages used for VT-x and AMD-V */ … … 372 372 * Worker function passed to RTMpOnAll, RTMpOnOthers and RTMpOnSpecific that 373 373 * is to be called on the target cpus. 374 * 374 * 375 375 * @param idCpu The identifier for the CPU the function is called on. 376 376 * @param pvUser1 The 1st user argument. … … 386 386 SUPR0Printf("HWACCMR0InitCPU cpu %d\n", idCpu); 387 387 #endif 388 Assert(idCpu == (RTCPUID)RTMpCpuIdToSetIndex(idCpu)); /// @todo fix idCpu == index assumption (rainy day) 388 389 389 390 if (u32VendorEBX == X86_CPUID_VENDOR_INTEL_EBX) … … 500 501 * Worker function passed to RTMpOnAll, RTMpOnOthers and RTMpOnSpecific that 501 502 * is to be called on the target cpus. 502 * 503 * 503 504 * @param idCpu The identifier for the CPU the function is called on. 504 505 * @param pvUser1 The 1st user argument. … … 513 514 514 515 Assert(pVM); 516 Assert(idCpu == (RTCPUID)RTMpCpuIdToSetIndex(idCpu)); /// @todo fix idCpu == index assumption (rainy day) 515 517 Assert(idCpu < RT_ELEMENTS(HWACCMR0Globals.aCpuInfo)); 516 518 … … 546 548 * Worker function passed to RTMpOnAll, RTMpOnOthers and RTMpOnSpecific that 547 549 * is to be called on the target cpus. 548 * 550 * 549 551 * @param idCpu The identifier for the CPU the function is called on. 550 552 * @param pvUser1 The 1st user argument. … … 557 559 int *paRc = (int *)pvUser1; 558 560 561 Assert(idCpu == (RTCPUID)RTMpCpuIdToSetIndex(idCpu)); /// @todo fix idCpu == index assumption (rainy day) 559 562 Assert(idCpu < RT_ELEMENTS(HWACCMR0Globals.aCpuInfo)); 560 563
Note:
See TracChangeset
for help on using the changeset viewer.