Changeset 23460 in vbox for trunk/include/VBox
- Timestamp:
- Oct 1, 2009 2:02:51 AM (15 years ago)
- Location:
- trunk/include/VBox
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/pgm.h
r22764 r23460 364 364 VMMDECL(int) PGMPhysGCPtr2CCPtrReadOnly(PVMCPU pVCpu, RTGCPTR GCPtr, void const **ppv, PPGMPAGEMAPLOCK pLock); 365 365 VMMDECL(void) PGMPhysReleasePageMappingLock(PVM pVM, PPGMPAGEMAPLOCK pLock); 366 367 /**368 * Checks if the lock structure is valid369 *370 * @param pVM The VM handle.371 * @param pLock The lock structure initialized by the mapping function.372 */373 DECLINLINE(bool) PGMPhysIsPageMappingLockValid(PVM pVM, PPGMPAGEMAPLOCK pLock)374 {375 /** @todo -> complete/change this */376 #if defined(IN_RC) || defined(VBOX_WITH_2X_4GB_ADDR_SPACE_IN_R0)377 return !!(pLock->u32Dummy);378 #else379 return !!(pLock->pvPage);380 #endif381 }382 383 366 VMMDECL(int) PGMPhysGCPhys2R3Ptr(PVM pVM, RTGCPHYS GCPhys, RTUINT cbRange, PRTR3PTR pR3Ptr); 384 367 #ifdef VBOX_STRICT -
trunk/include/VBox/types.h
r23146 r23460 770 770 uint32_t u32Dummy; 771 771 #else 772 /** Pointer to the PGMPAGE. */ 773 void *pvPage; 772 /** Pointer to the PGMPAGE and lock type. 773 * bit-0 abuse: set=write, clear=read. */ 774 uintptr_t uPageAndType; 775 /** Read lock type value. */ 776 # define PGMPAGEMAPLOCK_TYPE_READ ((uintptr_t)0) 777 /** Write lock type value. */ 778 # define PGMPAGEMAPLOCK_TYPE_WRITE ((uintptr_t)1) 779 /** Lock type mask. */ 780 # define PGMPAGEMAPLOCK_TYPE_MASK ((uintptr_t)1) 774 781 /** Pointer to the PGMCHUNKR3MAP. */ 775 782 void *pvMap;
Note:
See TracChangeset
for help on using the changeset viewer.