Searched refs:sMappedBase (Results 1 – 1 of 1) sorted by relevance
/haiku/src/tests/system/libroot/posix/ |
H A D | mprotect_test.cpp | 27 static uint8_t* sMappedBase; variable 40 if (mprotect(sMappedBase + sMappedSize - PAGE_SIZE, PAGE_SIZE, in signal_handler() 47 void* mappedAddress = mmap(sMappedBase + sMappedSize, kMapChunkSize, in signal_handler() 59 if (mprotect(sMappedBase + sMappedSize - PAGE_SIZE, PAGE_SIZE, PROT_READ) in signal_handler() 80 sMappedBase = (uint8_t*)mmap(NULL, kTestSize + kMapChunkSize, in main() 82 if (sMappedBase == MAP_FAILED) { in main() 86 munmap(sMappedBase + kMapChunkSize, kTestSize); in main() 90 printf("mapped %d bytes at %p\n", (int)sMappedSize, sMappedBase); in main() 92 if (mprotect(sMappedBase + sMappedSize - PAGE_SIZE, PAGE_SIZE, PROT_READ) in main() 99 sTouchedAddress = sMappedBase + i; in main()
|