D | vmm.h | 311 #define VMM_MAP_ITER(VMM,PT,PTEI,PTEN,MAP,FILL,BASE,SIZE,NEXT) do { \ argument 314 u64 _ptes = ((SIZE) - MAP->off) >> MAP->page->shift; \ 315 u64 _addr = ((BASE) + MAP->off); \ 318 MAP->off += PTEN << MAP->page->shift; \ 321 MAP->off = 0; \ 327 FILL(VMM, PT, PTEI, _ptes, MAP, _addr); \ 334 #define VMM_MAP_ITER_MEM(VMM,PT,PTEI,PTEN,MAP,FILL) \ argument 335 VMM_MAP_ITER(VMM,PT,PTEI,PTEN,MAP,FILL, \ 336 ((u64)MAP->mem->offset << NVKM_RAM_MM_SHIFT), \ 337 ((u64)MAP->mem->length << NVKM_RAM_MM_SHIFT), \ [all …]
|