VirtualBox

Changeset 64119 in vbox for trunk/src


Ignore:
Timestamp:
Sep 30, 2016 8:39:11 PM (8 years ago)
Author:
vboxsync
Message:

PGM,IOM: doc fixes

Location:
trunk/src/VBox/VMM/VMMR3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR3/IOM.cpp

    r64118 r64119  
    18551855 * @param   pVM             Pointer to the cross context VM structure.
    18561856 * @param   pvUser          The pvUserR3 argument of PGMR3PhysMMIOExPreRegister.
    1857  * @param   GCPhys          The mapping address.
    18581857 * @remarks Called while owning the PGM lock.
    18591858 */
  • trunk/src/VBox/VMM/VMMR3/PGMPhys.cpp

    r64118 r64119  
    26872687 *                          region. Otherwise it can be any number safe
    26882688 *                          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.
    26932694 * @param   pszDesc         The description.
    26942695 *
     
    26982699 *          PGMR3PhysMMIOExMap, PGMR3PhysMMIOExUnmap, PGMR3PhysMMIOExDeregister.
    26992700 */
    2700 VMMR3DECL(int) PGMR3PhysMMIOExPreRegister(PVM pVM, PPDMDEVINS pDevIns, uint32_t iRegion, RTGCPHYS cb, PGMPHYSHANDLERTYPE hType,
     2701VMMR3DECL(int) PGMR3PhysMMIOExPreRegister(PVM pVM, PPDMDEVINS pDevIns, uint32_t iRegion, RTGCPHYS cbRegion, PGMPHYSHANDLERTYPE hType,
    27012702                                          RTR3PTR pvUserR3, RTR0PTR pvUserR0, RTRCPTR pvUserRC, const char *pszDesc)
    27022703{
     
    27102711    AssertReturn(*pszDesc, VERR_INVALID_PARAMETER);
    27112712    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);
    27172718    AssertLogRelReturn(cPages <= PGM_MMIO2_MAX_PAGE_COUNT, VERR_OUT_OF_RANGE);
    27182719
     
    27382739         */
    27392740        PPGMREGMMIORANGE pNew;
    2740         rc = pgmR3PhysMMIOExCreate(pVM, pDevIns, iRegion, cb, pszDesc, &pNew);
     2741        rc = pgmR3PhysMMIOExCreate(pVM, pDevIns, iRegion, cbRegion, pszDesc, &pNew);
    27412742        if (RT_SUCCESS(rc))
    27422743        {
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette