D | vmm.h | 254 #define VMM_MAP_ITER(VMM,PT,PTEI,PTEN,MAP,FILL,BASE,SIZE,NEXT) do { \ argument 257 u64 _ptes = ((SIZE) - MAP->off) >> MAP->page->shift; \ 258 u64 _addr = ((BASE) + MAP->off); \ 261 MAP->off += PTEN << MAP->page->shift; \ 264 MAP->off = 0; \ 270 FILL(VMM, PT, PTEI, _ptes, MAP, _addr); \ 277 #define VMM_MAP_ITER_MEM(VMM,PT,PTEI,PTEN,MAP,FILL) \ argument 278 VMM_MAP_ITER(VMM,PT,PTEI,PTEN,MAP,FILL, \ 279 ((u64)MAP->mem->offset << NVKM_RAM_MM_SHIFT), \ 280 ((u64)MAP->mem->length << NVKM_RAM_MM_SHIFT), \ [all …]
|