Searched refs:PAGE_SIZE (Results 1 - 25 of 35) sorted by relevance

12

/bionic/libc/bionic/
H A Dgetpagesize.cpp34 return PAGE_SIZE;
H A Dmremap.cpp41 size_t rounded = BIONIC_ALIGN(new_size, PAGE_SIZE);
H A Dpthread_create.cpp60 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 Dpthread_exit.cpp96 void* allocation = reinterpret_cast<char*>(thread->bionic_tls) - PAGE_SIZE;
97 munmap(allocation, BIONIC_TLS_SIZE + 2 * PAGE_SIZE);
H A Dpthread_attr.cpp45 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 Dmmap.cpp51 size_t rounded = BIONIC_ALIGN(size, PAGE_SIZE);
H A Dpthread_internal.h160 #define SIGNAL_STACK_SIZE (SIGNAL_STACK_SIZE_WITHOUT_GUARD_PAGE + PAGE_SIZE)
/bionic/libc/kernel/uapi/asm-generic/
H A Dshmparam.h21 #define SHMLBA PAGE_SIZE
/bionic/libc/versioner-dependencies/common/kernel_uapi/asm-generic/
H A Dshmparam.h21 #define SHMLBA PAGE_SIZE
/bionic/libc/kernel/uapi/linux/
H A Dbinfmts.h24 #define MAX_ARG_STRLEN (PAGE_SIZE * 32)
H A Dresource.h70 #define MLOCK_LIMIT ((PAGE_SIZE > 64 * 1024) ? PAGE_SIZE : 64 * 1024)
H A Da.out.h105 #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 Dbinfmts.h24 #define MAX_ARG_STRLEN (PAGE_SIZE * 32)
H A Dresource.h70 #define MLOCK_LIMIT ((PAGE_SIZE > 64 * 1024) ? PAGE_SIZE : 64 * 1024)
H A Da.out.h105 #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 Dbionic_page.h20 // Get PAGE_SIZE and PAGE_MASK.
31 #define PAGE_END(x) PAGE_START((x) + (PAGE_SIZE-1))
H A DWriteProtected.h33 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 DCFIShadow.h74 align_up((kMaxTargetAddr >> (kShadowGranularity - 1)), PAGE_SIZE);
H A Dbionic_tls.h105 #define BIONIC_TLS_SIZE (BIONIC_ALIGN(sizeof(bionic_tls), PAGE_SIZE))
/bionic/linker/
H A Dlinker_block_allocator.cpp44 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 Dlinker_allocator.cpp123 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 Dlibdl_cfi.cpp29 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 Duser.h38 #define PAGE_SIZE 4096 macro
39 #define PAGE_MASK (~(PAGE_SIZE - 1))
/bionic/tools/versioner/current/sys/
H A Duser.h38 #define PAGE_SIZE 4096 macro
39 #define PAGE_MASK (~(PAGE_SIZE - 1))
/bionic/tests/
H A Dsys_mman_test.cpp231 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));

Completed in 5832 milliseconds

12