VirtualBox

Changeset 91909 in vbox for trunk/src


Ignore:
Timestamp:
Oct 20, 2021 7:05:44 PM (3 years ago)
Author:
vboxsync
Message:

VMM,PDM: Eliminated PDMDevHlpCritSectGetNopR0 and PDMDevHlpCritSectGetNopRC as they are no longer used. bugref:9218

Location:
trunk/src/VBox/VMM/VMMR3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR3/PDMCritSect.cpp

    r90677 r91909  
    10881088
    10891089/**
    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 /**
    11161090 * Display matching critical sections.
    11171091 */
  • trunk/src/VBox/VMM/VMMR3/PDMDevHlp.cpp

    r91906 r91909  
    26922692    PPDMCRITSECT pCritSect = PDMR3CritSectGetNop(pVM);
    26932693    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",
    27222694             pDevIns->pReg->szName, pDevIns->iInstance, pCritSect));
    27232695    return pCritSect;
     
    45634535    pdmR3DevHlp_CritSectInit,
    45644536    pdmR3DevHlp_CritSectGetNop,
    4565     pdmR3DevHlp_CritSectGetNopR0,
    4566     pdmR3DevHlp_CritSectGetNopRC,
    45674537    pdmR3DevHlp_SetDeviceCritSect,
    45684538    pdmR3DevHlp_CritSectYield,
     
    49284898    pdmR3DevHlp_CritSectInit,
    49294899    pdmR3DevHlp_CritSectGetNop,
    4930     pdmR3DevHlp_CritSectGetNopR0,
    4931     pdmR3DevHlp_CritSectGetNopRC,
    49324900    pdmR3DevHlp_SetDeviceCritSect,
    49334901    pdmR3DevHlp_CritSectYield,
     
    54505418    pdmR3DevHlp_CritSectInit,
    54515419    pdmR3DevHlp_CritSectGetNop,
    5452     pdmR3DevHlp_CritSectGetNopR0,
    5453     pdmR3DevHlp_CritSectGetNopRC,
    54545420    pdmR3DevHlp_SetDeviceCritSect,
    54555421    pdmR3DevHlp_CritSectYield,
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette