Changeset 14601 in vbox for trunk/src/VBox/VMM
- Timestamp:
- Nov 25, 2008 9:04:12 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/MMHyper.cpp
r14597 r14601 43 43 static DECLCALLBACK(bool) mmR3HyperRelocateCallback(PVM pVM, RTGCPTR GCPtrOld, RTGCPTR GCPtrNew, PGMRELOCATECALL enmMode, void *pvUser); 44 44 static int mmR3HyperMap(PVM pVM, const size_t cb, const char *pszDesc, PRTGCPTR pGCPtr, PMMLOOKUPHYPER *ppLookup); 45 static int mmR3HyperHeapCreate(PVM pVM, const size_t cb, PMMHYPERHEAP *ppHeap );45 static int mmR3HyperHeapCreate(PVM pVM, const size_t cb, PMMHYPERHEAP *ppHeap, PRTR0PTR pR0PtrHeap); 46 46 static int mmR3HyperHeapMap(PVM pVM, PMMHYPERHEAP pHeap, PRTGCPTR ppHeapGC); 47 47 static DECLCALLBACK(void) mmR3HyperInfoHma(PVM pVM, PCDBGFINFOHLP pHlp, const char *pszArgs); … … 92 92 * hypervisor static area because lookup records are allocated from it.) 93 93 */ 94 rc = mmR3HyperHeapCreate(pVM, cbHyperHeap, &pVM->mm.s.pHyperHeapR3 );94 rc = mmR3HyperHeapCreate(pVM, cbHyperHeap, &pVM->mm.s.pHyperHeapR3, &pVM->mm.s.pHyperHeapR0); 95 95 if (RT_SUCCESS(rc)) 96 96 { 97 pVM->mm.s.pHyperHeapR0 = (uintptr_t)pVM->mm.s.pHyperHeapR3; /** @todo #1865: map into ring-0 / whatever. */98 99 97 /* 100 98 * Make a small head fence to fend of accidental sequential access. … … 699 697 * 700 698 * @returns VBox status code. 701 * @param pVM The VM handle. 702 * @param cb The size of the new heap. 703 * @param ppHeap Where to store the heap pointer on successful return. 704 */ 705 static int mmR3HyperHeapCreate(PVM pVM, const size_t cb, PMMHYPERHEAP *ppHeap) 699 * @param pVM The VM handle. 700 * @param cb The size of the new heap. 701 * @param ppHeap Where to store the heap pointer on successful return. 702 * @param pR0PtrHeap Where to store the ring-0 address of the heap on 703 * success. 704 */ 705 static int mmR3HyperHeapCreate(PVM pVM, const size_t cb, PMMHYPERHEAP *ppHeap, PRTR0PTR pR0PtrHeap) 706 706 { 707 707 /* … … 758 758 759 759 *ppHeap = pHeap; 760 *pR0PtrHeap = pvR0; 760 761 return VINF_SUCCESS; 761 762 }
Note:
See TracChangeset
for help on using the changeset viewer.