- Timestamp:
- Oct 20, 2021 7:05:44 PM (3 years ago)
- Location:
- trunk/src/VBox/VMM/VMMR3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR3/PDMCritSect.cpp
r90677 r91909 1088 1088 1089 1089 /** 1090 * Gets the ring-0 address of the NOP critical section.1091 *1092 * @returns The ring-0 address of the NOP critical section.1093 * @param pVM The cross context VM structure.1094 */1095 VMMR3DECL(R0PTRTYPE(PPDMCRITSECT)) PDMR3CritSectGetNopR0(PVM pVM)1096 {1097 VM_ASSERT_VALID_EXT_RETURN(pVM, NIL_RTR0PTR);1098 return MMHyperR3ToR0(pVM, &pVM->pdm.s.NopCritSect);1099 }1100 1101 1102 /**1103 * Gets the raw-mode context address of the NOP critical section.1104 *1105 * @returns The raw-mode context address of the NOP critical section.1106 * @param pVM The cross context VM structure.1107 */1108 VMMR3DECL(RCPTRTYPE(PPDMCRITSECT)) PDMR3CritSectGetNopRC(PVM pVM)1109 {1110 VM_ASSERT_VALID_EXT_RETURN(pVM, NIL_RTRCPTR);1111 return MMHyperR3ToRC(pVM, &pVM->pdm.s.NopCritSect);1112 }1113 1114 1115 /**1116 1090 * Display matching critical sections. 1117 1091 */ -
trunk/src/VBox/VMM/VMMR3/PDMDevHlp.cpp
r91906 r91909 2692 2692 PPDMCRITSECT pCritSect = PDMR3CritSectGetNop(pVM); 2693 2693 LogFlow(("pdmR3DevHlp_CritSectGetNop: caller='%s'/%d: return %p\n", 2694 pDevIns->pReg->szName, pDevIns->iInstance, pCritSect));2695 return pCritSect;2696 }2697 2698 2699 /** @interface_method_impl{PDMDEVHLPR3,pfnCritSectGetNopR0} */2700 static DECLCALLBACK(R0PTRTYPE(PPDMCRITSECT)) pdmR3DevHlp_CritSectGetNopR0(PPDMDEVINS pDevIns)2701 {2702 PDMDEV_ASSERT_DEVINS(pDevIns);2703 PVM pVM = pDevIns->Internal.s.pVMR3;2704 VM_ASSERT_EMT(pVM);2705 2706 R0PTRTYPE(PPDMCRITSECT) pCritSect = PDMR3CritSectGetNopR0(pVM);2707 LogFlow(("pdmR3DevHlp_CritSectGetNopR0: caller='%s'/%d: return %RHv\n",2708 pDevIns->pReg->szName, pDevIns->iInstance, pCritSect));2709 return pCritSect;2710 }2711 2712 2713 /** @interface_method_impl{PDMDEVHLPR3,pfnCritSectGetNopRC} */2714 static DECLCALLBACK(RCPTRTYPE(PPDMCRITSECT)) pdmR3DevHlp_CritSectGetNopRC(PPDMDEVINS pDevIns)2715 {2716 PDMDEV_ASSERT_DEVINS(pDevIns);2717 PVM pVM = pDevIns->Internal.s.pVMR3;2718 VM_ASSERT_EMT(pVM);2719 2720 RCPTRTYPE(PPDMCRITSECT) pCritSect = PDMR3CritSectGetNopRC(pVM);2721 LogFlow(("pdmR3DevHlp_CritSectGetNopRC: caller='%s'/%d: return %RRv\n",2722 2694 pDevIns->pReg->szName, pDevIns->iInstance, pCritSect)); 2723 2695 return pCritSect; … … 4563 4535 pdmR3DevHlp_CritSectInit, 4564 4536 pdmR3DevHlp_CritSectGetNop, 4565 pdmR3DevHlp_CritSectGetNopR0,4566 pdmR3DevHlp_CritSectGetNopRC,4567 4537 pdmR3DevHlp_SetDeviceCritSect, 4568 4538 pdmR3DevHlp_CritSectYield, … … 4928 4898 pdmR3DevHlp_CritSectInit, 4929 4899 pdmR3DevHlp_CritSectGetNop, 4930 pdmR3DevHlp_CritSectGetNopR0,4931 pdmR3DevHlp_CritSectGetNopRC,4932 4900 pdmR3DevHlp_SetDeviceCritSect, 4933 4901 pdmR3DevHlp_CritSectYield, … … 5450 5418 pdmR3DevHlp_CritSectInit, 5451 5419 pdmR3DevHlp_CritSectGetNop, 5452 pdmR3DevHlp_CritSectGetNopR0,5453 pdmR3DevHlp_CritSectGetNopRC,5454 5420 pdmR3DevHlp_SetDeviceCritSect, 5455 5421 pdmR3DevHlp_CritSectYield,
Note:
See TracChangeset
for help on using the changeset viewer.