Changeset 93629 in vbox for trunk/src/VBox
- Timestamp:
- Feb 6, 2022 11:45:44 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMAll/MMAll.cpp
r93626 r93629 90 90 return NULL; 91 91 } 92 93 94 #ifdef IN_RING395 /**96 * Lookup a current context address.97 *98 * @returns Pointer to the corresponding lookup record.99 * @returns NULL on failure.100 * @param pVM The cross context VM structure.101 * @param pv The current context address to lookup.102 * @param poff Where to store the offset into the HMA memory chunk.103 */104 DECLINLINE(PMMLOOKUPHYPER) mmHyperLookupCC(PVM pVM, void *pv, uint32_t *poff)105 {106 return mmHyperLookupR3(pVM, pv, poff);107 }108 #endif109 110 111 #ifdef IN_RING3112 /**113 * Calculate the host context ring-3 address of an offset into the HMA memory chunk.114 *115 * @returns the host context ring-3 address.116 * @param pLookup The HMA lookup record.117 * @param off The offset into the HMA memory chunk.118 */119 DECLINLINE(RTR3PTR) mmHyperLookupCalcR3(PMMLOOKUPHYPER pLookup, uint32_t off)120 {121 switch (pLookup->enmType)122 {123 case MMLOOKUPHYPERTYPE_LOCKED:124 return (RTR3PTR)((RTR3UINTPTR)pLookup->u.Locked.pvR3 + off);125 case MMLOOKUPHYPERTYPE_HCPHYS:126 return (RTR3PTR)((RTR3UINTPTR)pLookup->u.HCPhys.pvR3 + off);127 default:128 AssertMsgFailed(("enmType=%d\n", pLookup->enmType));129 return NIL_RTR3PTR;130 }131 }132 #endif133 92 134 93
Note:
See TracChangeset
for help on using the changeset viewer.