VirtualBox

Changeset 26522 in vbox for trunk/src/VBox/VMM


Ignore:
Timestamp:
Feb 15, 2010 2:16:39 AM (15 years ago)
Author:
vboxsync
Message:

warnings.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/MMHyper.cpp

    r25732 r26522  
    10901090    AssertReturn(!((uintptr_t)pvStart & PAGE_OFFSET_MASK), VERR_INVALID_POINTER);
    10911091    AssertReturn(!(cb & PAGE_OFFSET_MASK), VERR_INVALID_PARAMETER);
     1092    AssertReturn(cb <= UINT32_MAX, VERR_INVALID_PARAMETER);
    10921093    PMMLOOKUPHYPER pLookup = mmR3HyperLookupR3(pVM, pvStart);
    10931094    AssertReturn(pLookup, VERR_INVALID_PARAMETER);
     
    11081109    {
    11091110        rc = PGMMapSetPage(pVM, MMHyperR3ToRC(pVM, pvStart), cb, 0);
    1110         SUPR3PageProtect(pbR3, R0Ptr, off, cb, RTMEM_PROT_NONE);
     1111        SUPR3PageProtect(pbR3, R0Ptr, off, (uint32_t)cb, RTMEM_PROT_NONE);
    11111112    }
    11121113    else
    11131114    {
    11141115        rc = PGMMapSetPage(pVM, MMHyperR3ToRC(pVM, pvStart), cb, X86_PTE_P | X86_PTE_A | X86_PTE_D | X86_PTE_RW);
    1115         SUPR3PageProtect(pbR3, R0Ptr, off, cb, RTMEM_PROT_READ | RTMEM_PROT_WRITE);
     1116        SUPR3PageProtect(pbR3, R0Ptr, off, (uint32_t)cb, RTMEM_PROT_READ | RTMEM_PROT_WRITE);
    11161117    }
    11171118    return rc;
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