Changeset 89493 in vbox
- Timestamp:
- Jun 4, 2021 4:30:29 AM (4 years ago)
- svn:sync-xref-src-repo-rev:
- 144850
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Bus/DevIommuIntel.cpp
r89492 r89493 2254 2254 Assert(pIoPagePrev->fPerm == pIoPage->fPerm); 2255 2255 2256 size_t const cbPrev 2257 RTGCPHYS const GCPhysPrev 2258 RTGCPHYS const GCPhys 2256 size_t const cbPrev = RT_BIT_64(pIoPagePrev->cShift); 2257 RTGCPHYS const GCPhysPrev = pIoPagePrev->GCPhysBase; 2258 RTGCPHYS const GCPhys = pIoPage->GCPhysBase; 2259 2259 #ifdef RT_STRICT 2260 2260 /* Paranoia: Ensure offset bits are 0. */ … … 2282 2282 RTGCPHYS GCPhysAddr = NIL_RTGCPHYS; 2283 2283 DMARMEMREQIN MemReqIn = pMemReqRemap->In; 2284 uint64_t const uAddrIn = pMemReqRemap->In.AddrRange.uAddr;2285 size_t const cbAddrIn = pMemReqRemap->In.AddrRange.cb;2286 uint64_t uAddrInBase = pMemReqRemap->In.AddrRange.uAddr & X86_PAGE_4K_BASE_MASK;2287 uint64_t offAddrIn = pMemReqRemap->In.AddrRange.uAddr & X86_PAGE_4K_OFFSET_MASK;2284 uint64_t const uAddrIn = MemReqIn.AddrRange.uAddr; 2285 size_t const cbAddrIn = MemReqIn.AddrRange.cb; 2286 uint64_t uAddrInBase = MemReqIn.AddrRange.uAddr & X86_PAGE_4K_BASE_MASK; 2287 uint64_t offAddrIn = MemReqIn.AddrRange.uAddr & X86_PAGE_4K_OFFSET_MASK; 2288 2288 size_t cbRemaining = cbAddrIn; 2289 2289 … … 2306 2306 if (cbRemaining == cbAddrIn) 2307 2307 { 2308 uint64_t const f IoPageMask= X86_GET_PAGE_OFFSET_MASK(IoPage.cShift);2309 uint64_t const offAddrOut = uAddrIn & fIoPageMask;2308 uint64_t const fOffMask = X86_GET_PAGE_OFFSET_MASK(IoPage.cShift); 2309 uint64_t const offAddrOut = uAddrIn & fOffMask; 2310 2310 Assert(!(IoPage.GCPhysBase & fIoPageMask)); 2311 2311 GCPhysAddr = IoPage.GCPhysBase | offAddrOut;
Note:
See TracChangeset
for help on using the changeset viewer.