/bionic/libc/bionic/ |
H A D | getpagesize.cpp | 34 return PAGE_SIZE;
|
H A D | mremap.cpp | 41 size_t rounded = BIONIC_ALIGN(new_size, PAGE_SIZE);
|
H A D | pthread_create.cpp | 60 size_t allocation_size = BIONIC_TLS_SIZE + 2 * PAGE_SIZE; 67 thread->bionic_tls = reinterpret_cast<bionic_tls*>(static_cast<char*>(allocation) + PAGE_SIZE); 85 if (mprotect(stack_base, PAGE_SIZE, PROT_NONE) == -1) { 90 ss.ss_sp = reinterpret_cast<uint8_t*>(stack_base) + PAGE_SIZE; 91 ss.ss_size = SIGNAL_STACK_SIZE - PAGE_SIZE; 99 prctl(PR_SET_VMA, PR_SET_VMA_ANON_NAME, stack_base, PAGE_SIZE, "thread signal stack guard page"); 164 // Make sure the stack size and guard size are multiples of PAGE_SIZE. 165 mmap_size = BIONIC_ALIGN(attr->stack_size + sizeof(pthread_internal_t), PAGE_SIZE); 166 attr->guard_size = BIONIC_ALIGN(attr->guard_size, PAGE_SIZE);
|
H A D | pthread_exit.cpp | 96 void* allocation = reinterpret_cast<char*>(thread->bionic_tls) - PAGE_SIZE; 97 munmap(allocation, BIONIC_TLS_SIZE + 2 * PAGE_SIZE);
|
H A D | pthread_attr.cpp | 45 attr->guard_size = PAGE_SIZE; 106 if ((stack_size & (PAGE_SIZE - 1) || stack_size < PTHREAD_STACK_MIN)) { 109 if (reinterpret_cast<uintptr_t>(stack_base) & (PAGE_SIZE - 1)) {
|
H A D | mmap.cpp | 51 size_t rounded = BIONIC_ALIGN(size, PAGE_SIZE);
|
H A D | pthread_internal.h | 160 #define SIGNAL_STACK_SIZE (SIGNAL_STACK_SIZE_WITHOUT_GUARD_PAGE + PAGE_SIZE)
|
/bionic/libc/kernel/uapi/asm-generic/ |
H A D | shmparam.h | 21 #define SHMLBA PAGE_SIZE
|
/bionic/libc/versioner-dependencies/common/kernel_uapi/asm-generic/ |
H A D | shmparam.h | 21 #define SHMLBA PAGE_SIZE
|
/bionic/libc/kernel/uapi/linux/ |
H A D | binfmts.h | 24 #define MAX_ARG_STRLEN (PAGE_SIZE * 32)
|
H A D | resource.h | 70 #define MLOCK_LIMIT ((PAGE_SIZE > 64 * 1024) ? PAGE_SIZE : 64 * 1024)
|
H A D | a.out.h | 105 #define N_TXTADDR(x) (N_MAGIC(x) == QMAGIC ? PAGE_SIZE : 0) 120 #define PAGE_SIZE 0x400 macro 121 #define SEGMENT_SIZE PAGE_SIZE
|
/bionic/libc/versioner-dependencies/common/kernel_uapi/linux/ |
H A D | binfmts.h | 24 #define MAX_ARG_STRLEN (PAGE_SIZE * 32)
|
H A D | resource.h | 70 #define MLOCK_LIMIT ((PAGE_SIZE > 64 * 1024) ? PAGE_SIZE : 64 * 1024)
|
H A D | a.out.h | 105 #define N_TXTADDR(x) (N_MAGIC(x) == QMAGIC ? PAGE_SIZE : 0) 120 #define PAGE_SIZE 0x400 macro 121 #define SEGMENT_SIZE PAGE_SIZE
|
/bionic/libc/private/ |
H A D | bionic_page.h | 20 // Get PAGE_SIZE and PAGE_MASK. 31 #define PAGE_END(x) PAGE_START((x) + (PAGE_SIZE-1))
|
H A D | WriteProtected.h | 33 char padding[PAGE_SIZE]; 37 } __attribute__((aligned(PAGE_SIZE))); 44 static_assert(sizeof(T) < PAGE_SIZE, member in class:WriteProtected 45 "WriteProtected only supports contents up to PAGE_SIZE"); 59 if (mprotect(&contents, PAGE_SIZE, PROT_READ)) { 74 if (mprotect(&contents, PAGE_SIZE, PROT_READ | PROT_WRITE) != 0) { 79 if (mprotect(&contents, PAGE_SIZE, PROT_READ) != 0) {
|
H A D | CFIShadow.h | 74 align_up((kMaxTargetAddr >> (kShadowGranularity - 1)), PAGE_SIZE);
|
H A D | bionic_tls.h | 105 #define BIONIC_TLS_SIZE (BIONIC_ALIGN(sizeof(bionic_tls), PAGE_SIZE))
|
/bionic/linker/ |
H A D | linker_block_allocator.cpp | 44 uint8_t bytes[PAGE_SIZE - 16] __attribute__((aligned(16))); 109 if (mprotect(page, PAGE_SIZE, prot) == -1) { 116 static_assert(sizeof(LinkerBlockAllocatorPage) == PAGE_SIZE, 120 mmap(nullptr, PAGE_SIZE, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, 0, 0)); 126 prctl(PR_SET_VMA, PR_SET_VMA_ANON_NAME, page, PAGE_SIZE, "linker_alloc"); 130 first_block->num_free_blocks = (PAGE_SIZE - sizeof(LinkerBlockAllocatorPage*))/block_size_; 146 if (block >= (page_ptr + sizeof(page->next)) && block < (page_ptr + PAGE_SIZE)) {
|
H A D | linker_allocator.cpp | 123 void* page_end = reinterpret_cast<void*>(reinterpret_cast<uintptr_t>(page_start) + PAGE_SIZE); 141 munmap(page_start, PAGE_SIZE); 203 void* map_ptr = mmap(nullptr, PAGE_SIZE, 209 prctl(PR_SET_VMA, PR_SET_VMA_ANON_NAME, map_ptr, PAGE_SIZE, "linker_alloc_small_objects"); 216 size_t free_blocks_cnt = (PAGE_SIZE - sizeof(page_info))/block_size_;
|
/bionic/libdl/ |
H A D | libdl_cfi.cpp | 29 char padding[PAGE_SIZE - sizeof(v)]; 30 } shadow_base_storage alignas(PAGE_SIZE); 37 static_assert(sizeof(shadow_base_storage) == PAGE_SIZE, "");
|
/bionic/libc/include/sys/ |
H A D | user.h | 38 #define PAGE_SIZE 4096 macro 39 #define PAGE_MASK (~(PAGE_SIZE - 1))
|
/bionic/tools/versioner/current/sys/ |
H A D | user.h | 38 #define PAGE_SIZE 4096 macro 39 #define PAGE_MASK (~(PAGE_SIZE - 1))
|
/bionic/tests/ |
H A D | sys_mman_test.cpp | 231 void* map = mmap(nullptr, PAGE_SIZE, PROT_NONE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); 233 ASSERT_EQ(MAP_FAILED, mremap(map, PAGE_SIZE, kHuge, MREMAP_MAYMOVE)); 237 char* base = reinterpret_cast<char*>(mmap(nullptr, PAGE_SIZE * 2, PROT_EXEC | PROT_READ, 240 __builtin___clear_cache(base, base + (PAGE_SIZE * 2));
|