Searched refs:pagemask (Results 1 – 3 of 3) sorted by relevance
221 size_t pagemask = gcp->pagesize - 1; in round_up_to_pagesize() local223 return ((size + pagemask) & ~pagemask); in round_up_to_pagesize()230 size_t pagemask = gcp->pagesize - 1; in round_down_to_pagesize() local232 return (size & ~pagemask); in round_down_to_pagesize()
200 int pagemask = ~(sysconf(_SC_PAGE_SIZE) - 1); in main() local471 ret = read(fd, (char *)((ulong) ADDRESS_OF_MAIN & pagemask), in main()485 ret = write(fd, (char *)((ulong) ADDRESS_OF_MAIN & pagemask), in main()
144 uint64 frame, paddr, pfnmask, pagemask; in VirtualToPhysical() local176 pagemask = pagesize - 1; in VirtualToPhysical()178 paddr = ((frame & pfnmask) * pagesize) | ((uintptr_t)vaddr & pagemask); in VirtualToPhysical()