Changeset 26522 in vbox for trunk/src/VBox/VMM
- Timestamp:
- Feb 15, 2010 2:16:39 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/MMHyper.cpp
r25732 r26522 1090 1090 AssertReturn(!((uintptr_t)pvStart & PAGE_OFFSET_MASK), VERR_INVALID_POINTER); 1091 1091 AssertReturn(!(cb & PAGE_OFFSET_MASK), VERR_INVALID_PARAMETER); 1092 AssertReturn(cb <= UINT32_MAX, VERR_INVALID_PARAMETER); 1092 1093 PMMLOOKUPHYPER pLookup = mmR3HyperLookupR3(pVM, pvStart); 1093 1094 AssertReturn(pLookup, VERR_INVALID_PARAMETER); … … 1108 1109 { 1109 1110 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); 1111 1112 } 1112 1113 else 1113 1114 { 1114 1115 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); 1116 1117 } 1117 1118 return rc;
Note:
See TracChangeset
for help on using the changeset viewer.