- Timestamp:
- Sep 29, 2008 3:03:55 PM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 37159
- Location:
- trunk/src/VBox/VMM
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/PDM.cpp
r12744 r12807 184 184 */ 185 185 pVM->pdm.s.offVM = RT_OFFSETOF(VM, pdm.s); 186 pVM->pdm.s.GCPhysVMMDevHeap = NIL_RTGCPHYS; 186 187 187 188 int rc = TMR3TimerCreateInternal(pVM, TMCLOCK_VIRTUAL, pdmR3PollerTimer, NULL, "PDM Poller", &pVM->pdm.s.pTimerPollers); … … 1188 1189 } 1189 1190 1191 1190 1192 /** 1191 1193 * Registers the VMM device heap … … 1209 1211 } 1210 1212 1213 1211 1214 /** 1212 1215 * Unregisters the VMM device heap … … 1228 1231 } 1229 1232 1233 1230 1234 /** 1231 1235 * Allocates memory from the VMM device heap … … 1242 1246 Log(("PDMR3VMMDevHeapAlloc %x\n", cbSize)); 1243 1247 1244 /* @todo not a real heap as there's currently only one user. */1248 /** @todo not a real heap as there's currently only one user. */ 1245 1249 *ppv = pVM->pdm.s.pvVMMDevHeap; 1246 1250 pVM->pdm.s.cbVMMDevHeapLeft = 0; … … 1248 1252 } 1249 1253 1254 1250 1255 /** 1251 1256 * Frees memory from the VMM device heap … … 1253 1258 * @returns VBox status code. 1254 1259 * @param pVM VM handle. 1255 * @param pv Ring-3 pointer. 1260 * @param pv Ring-3 pointer. 1256 1261 */ 1257 1262 PDMR3DECL(int) PDMR3VMMDevHeapFree(PVM pVM, RTR3PTR pv) … … 1259 1264 Log(("PDMR3VMMDevHeapFree %VHv\n", pv)); 1260 1265 1261 /* @todo not a real heap as there's currently only one user. */1266 /** @todo not a real heap as there's currently only one user. */ 1262 1267 pVM->pdm.s.cbVMMDevHeapLeft = pVM->pdm.s.cbVMMDevHeap; 1263 1268 return VINF_SUCCESS; -
trunk/src/VBox/VMM/PDMDevice.cpp
r12799 r12807 3677 3677 3678 3678 3679 3680 3681 3679 3682 /** @copydoc PDMDEVHLP::pfnGetVM */ 3680 3683 static DECLCALLBACK(PVM) pdmR3DevHlp_Untrusted_GetVM(PPDMDEVINS pDevIns) … … 4030 4033 } 4031 4034 4032 /** 4033 * @copydoc PDMDEVHLP::pfnRegisterVMMDevHeap 4034 */ 4035 4036 /** @copydoc PDMDEVHLP::pfnRegisterVMMDevHeap */ 4035 4037 static DECLCALLBACK(int) pdmR3DevHlp_Untrusted_RegisterVMMDevHeap(PPDMDEVINS pDevIns, RTGCPHYS GCPhys, RTR3PTR pvHeap, unsigned cbSize) 4036 4038 { … … 4040 4042 } 4041 4043 4042 /** 4043 * @copydoc PDMDEVHLP::pfnUnregisterVMMDevHeap 4044 */ 4044 4045 /** @copydoc PDMDEVHLP::pfnUnregisterVMMDevHeap */ 4045 4046 static DECLCALLBACK(int) pdmR3DevHlp_Untrusted_UnregisterVMMDevHeap(PPDMDEVINS pDevIns, RTGCPHYS GCPhys) 4046 4047 { … … 4049 4050 return VERR_ACCESS_DENIED; 4050 4051 } 4052 4053 4051 4054 4052 4055 -
trunk/src/VBox/VMM/PDMInternal.h
r12687 r12807 844 844 R3PTRTYPE(PPDMASYNCCOMPLETIONTEMPLATE) pAsyncCompletionTemplates; 845 845 846 /** PDMVMM device heap846 /** @name VMM device heap 847 847 * @{ */ 848 /** Pointer to the heap base (MMIO2 ring-3 mapping). NULL if not registered. */ 848 849 RTR3PTR pvVMMDevHeap; 850 /** The heap size. */ 849 851 RTUINT cbVMMDevHeap; 852 /** Free space. */ 850 853 RTUINT cbVMMDevHeapLeft; 854 /** The current mapping. NIL_RTGCPHYS if not mapped or registered. */ 851 855 RTGCPHYS GCPhysVMMDevHeap; 852 856 /** @} */
Note:
See TracChangeset
for help on using the changeset viewer.