- Timestamp:
- Sep 30, 2016 8:39:11 PM (8 years ago)
- Location:
- trunk/src/VBox/VMM/VMMR3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR3/IOM.cpp
r64118 r64119 1855 1855 * @param pVM Pointer to the cross context VM structure. 1856 1856 * @param pvUser The pvUserR3 argument of PGMR3PhysMMIOExPreRegister. 1857 * @param GCPhys The mapping address.1858 1857 * @remarks Called while owning the PGM lock. 1859 1858 */ -
trunk/src/VBox/VMM/VMMR3/PGMPhys.cpp
r64118 r64119 2687 2687 * region. Otherwise it can be any number safe 2688 2688 * UINT8_MAX. 2689 * @param cb The size of the region. Must be page aligned. 2690 * @param fFlags Reserved for future use, must be zero. 2691 * @param ppv Where to store the pointer to the ring-3 mapping of 2692 * the memory. 2689 * @param cbRegion The size of the region. Must be page aligned. 2690 * @param hType The physical handler callback type. 2691 * @param pvUserR3 User parameter for ring-3 context callbacks. 2692 * @param pvUserR0 User parameter for ring-0 context callbacks. 2693 * @param pvUserRC User parameter for raw-mode context callbacks. 2693 2694 * @param pszDesc The description. 2694 2695 * … … 2698 2699 * PGMR3PhysMMIOExMap, PGMR3PhysMMIOExUnmap, PGMR3PhysMMIOExDeregister. 2699 2700 */ 2700 VMMR3DECL(int) PGMR3PhysMMIOExPreRegister(PVM pVM, PPDMDEVINS pDevIns, uint32_t iRegion, RTGCPHYS cb , PGMPHYSHANDLERTYPE hType,2701 VMMR3DECL(int) PGMR3PhysMMIOExPreRegister(PVM pVM, PPDMDEVINS pDevIns, uint32_t iRegion, RTGCPHYS cbRegion, PGMPHYSHANDLERTYPE hType, 2701 2702 RTR3PTR pvUserR3, RTR0PTR pvUserR0, RTRCPTR pvUserRC, const char *pszDesc) 2702 2703 { … … 2710 2711 AssertReturn(*pszDesc, VERR_INVALID_PARAMETER); 2711 2712 AssertReturn(pgmR3PhysMMIOExFind(pVM, pDevIns, iRegion) == NULL, VERR_ALREADY_EXISTS); 2712 AssertReturn(!(cb & PAGE_OFFSET_MASK), VERR_INVALID_PARAMETER);2713 AssertReturn(cb , VERR_INVALID_PARAMETER);2714 2715 const uint32_t cPages = cb >> PAGE_SHIFT;2716 AssertLogRelReturn(((RTGCPHYS)cPages << PAGE_SHIFT) == cb , VERR_INVALID_PARAMETER);2713 AssertReturn(!(cbRegion & PAGE_OFFSET_MASK), VERR_INVALID_PARAMETER); 2714 AssertReturn(cbRegion, VERR_INVALID_PARAMETER); 2715 2716 const uint32_t cPages = cbRegion >> PAGE_SHIFT; 2717 AssertLogRelReturn(((RTGCPHYS)cPages << PAGE_SHIFT) == cbRegion, VERR_INVALID_PARAMETER); 2717 2718 AssertLogRelReturn(cPages <= PGM_MMIO2_MAX_PAGE_COUNT, VERR_OUT_OF_RANGE); 2718 2719 … … 2738 2739 */ 2739 2740 PPGMREGMMIORANGE pNew; 2740 rc = pgmR3PhysMMIOExCreate(pVM, pDevIns, iRegion, cb , pszDesc, &pNew);2741 rc = pgmR3PhysMMIOExCreate(pVM, pDevIns, iRegion, cbRegion, pszDesc, &pNew); 2741 2742 if (RT_SUCCESS(rc)) 2742 2743 {
Note:
See TracChangeset
for help on using the changeset viewer.