D | vmm.h | 285 #define VMM_MAP_ITER(VMM,PT,PTEI,PTEN,MAP,FILL,BASE,SIZE,NEXT) do { \ argument 288 u64 _ptes = ((SIZE) - MAP->off) >> MAP->page->shift; \ 289 u64 _addr = ((BASE) + MAP->off); \ 292 MAP->off += PTEN << MAP->page->shift; \ 295 MAP->off = 0; \ 301 FILL(VMM, PT, PTEI, _ptes, MAP, _addr); \ 308 #define VMM_MAP_ITER_MEM(VMM,PT,PTEI,PTEN,MAP,FILL) \ argument 309 VMM_MAP_ITER(VMM,PT,PTEI,PTEN,MAP,FILL, \ 310 ((u64)MAP->mem->offset << NVKM_RAM_MM_SHIFT), \ 311 ((u64)MAP->mem->length << NVKM_RAM_MM_SHIFT), \ [all …]
|