Lines Matching refs:SYSTEM_PAGE_SIZE
129 (BLOCK_ALIGN-HEADER_EXTRA) + SYSTEM_PAGE_SIZE;
167 assert(((int) pHdr->mapAddr & (SYSTEM_PAGE_SIZE-1)) == 0);
194 if (mprotect(pHdr->mapAddr + SYSTEM_PAGE_SIZE, SYSTEM_PAGE_SIZE,
204 int numPages = (pHdr->mapLength+SYSTEM_PAGE_SIZE-1) / SYSTEM_PAGE_SIZE;
333 * SYSTEM_PAGE_SIZE multiple (but we do it anyway).
342 lastGoodOff = (startOffset-1) & ~(SYSTEM_PAGE_SIZE-1);
343 firstWriteOff = startOffset & ~(SYSTEM_PAGE_SIZE-1);
344 lastWriteOff = (nextOffset-1) & ~(SYSTEM_PAGE_SIZE-1);
352 len = (lastWriteOff - firstWriteOff) + SYSTEM_PAGE_SIZE;
368 start = firstWriteOff / SYSTEM_PAGE_SIZE;
369 end = lastWriteOff / SYSTEM_PAGE_SIZE;
465 firstPage = ((u1*)pLen - (u1*)pHdr->mapAddr) / SYSTEM_PAGE_SIZE;
466 lastPage = ((u1*)mem - (u1*)pHdr->mapAddr + (len-1)) / SYSTEM_PAGE_SIZE;
496 cc = mprotect(pHdr->mapAddr + SYSTEM_PAGE_SIZE * i,
497 SYSTEM_PAGE_SIZE, PROT_READ);
510 cc = mprotect(pHdr->mapAddr + SYSTEM_PAGE_SIZE * i,
511 SYSTEM_PAGE_SIZE, PROT_READ | PROT_WRITE);
616 (int) ((off + HEADER_EXTRA) / SYSTEM_PAGE_SIZE),
627 int numPages = (pHdr->mapLength+SYSTEM_PAGE_SIZE-1) / SYSTEM_PAGE_SIZE;