Searched refs:PAGE_SIZE (Results 1 – 19 of 19) sorted by relevance
/bionic/libc/include/ |
D | limits.h | 118 #ifndef PAGE_SIZE 119 #define PAGE_SIZE 4096 macro 122 #define PAGESIZE PAGE_SIZE 126 #define PAGE_MASK (~(PAGE_SIZE - 1))
|
D | pthread.h | 128 #define PTHREAD_STACK_MIN (4 * PAGE_SIZE) 130 #define PTHREAD_STACK_MIN (2 * PAGE_SIZE)
|
/bionic/linker/ |
D | linker_allocator.cpp | 25 uint8_t bytes[PAGE_SIZE-sizeof(LinkerAllocatorPage*)]; 89 if (mprotect(page, PAGE_SIZE, prot) == -1) { in protect_all() 96 LinkerAllocatorPage* page = reinterpret_cast<LinkerAllocatorPage*>(mmap(nullptr, PAGE_SIZE, in create_new_page() 102 prctl(PR_SET_VMA, PR_SET_VMA_ANON_NAME, page, PAGE_SIZE, "linker_alloc"); in create_new_page() 104 memset(page, 0, PAGE_SIZE); in create_new_page() 108 first_block->num_free_blocks = (PAGE_SIZE - sizeof(LinkerAllocatorPage*))/block_size_; in create_new_page() 124 if (block >= (page_ptr + sizeof(page->next)) && block < (page_ptr + PAGE_SIZE)) { in find_page()
|
D | linker_phdr.cpp | 375 memset(reinterpret_cast<void*>(seg_file_end), 0, PAGE_SIZE - PAGE_OFFSET(seg_file_end)); in LoadSegments() 625 memcmp(mem_base + match_offset, file_base + match_offset, PAGE_SIZE) != 0) { in phdr_table_map_gnu_relro() 626 match_offset += PAGE_SIZE; in phdr_table_map_gnu_relro() 632 memcmp(mem_base + mismatch_offset, file_base + mismatch_offset, PAGE_SIZE) == 0) { in phdr_table_map_gnu_relro() 633 mismatch_offset += PAGE_SIZE; in phdr_table_map_gnu_relro()
|
D | linker.h | 85 #define PAGE_END(x) PAGE_START((x) + (PAGE_SIZE-1))
|
D | linker.cpp | 798 if ((file_offset % PAGE_SIZE) != 0) { in load_library()
|
/bionic/libc/kernel/uapi/asm-generic/ |
D | shmparam.h | 21 #define SHMLBA PAGE_SIZE
|
/bionic/libc/kernel/uapi/linux/ |
D | resource.h | 70 #define MLOCK_LIMIT ((PAGE_SIZE > 64*1024) ? PAGE_SIZE : 64*1024)
|
D | binfmts.h | 24 #define MAX_ARG_STRLEN (PAGE_SIZE * 32)
|
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
|
D | kvm.h | 330 #define KVM_COALESCED_MMIO_MAX ((PAGE_SIZE - sizeof(struct kvm_coalesced_mmio_ring)) / sizeof(s…
|
/bionic/libc/bionic/ |
D | pthread_attr.cpp | 45 attr->guard_size = PAGE_SIZE; in pthread_attr_init() 106 if ((stack_size & (PAGE_SIZE - 1) || stack_size < PTHREAD_STACK_MIN)) { in pthread_attr_setstack() 109 if (reinterpret_cast<uintptr_t>(stack_base) & (PAGE_SIZE - 1)) { in pthread_attr_setstack()
|
D | libc_init_static.cpp | 60 #define PAGE_END(x) PAGE_START((x) + (PAGE_SIZE-1))
|
D | sysconf.cpp | 131 result = (int) (total / (PAGE_SIZE/1024)); in __get_meminfo() 235 return PAGE_SIZE; in sysconf()
|
D | pthread_create.cpp | 175 thread->attr.stack_size = BIONIC_ALIGN(thread->attr.stack_size, PAGE_SIZE); in pthread_create() 176 thread->attr.guard_size = BIONIC_ALIGN(thread->attr.guard_size, PAGE_SIZE); in pthread_create()
|
D | ndk_cruft.cpp | 51 unsigned int __page_size = PAGE_SIZE;
|
D | stubs.cpp | 463 return PAGE_SIZE; in getpagesize()
|
/bionic/libc/arch-x86/bionic/ |
D | __set_tls.c | 50 result->limit = PAGE_SIZE; in __init_user_desc()
|
/bionic/tests/ |
D | dlext_test.cpp | 57 #define LIBZIP_OFFSET 2*PAGE_SIZE 152 extinfo.library_fd_offset = (5LL<<58) + PAGE_SIZE; in TEST_F() 191 void* start = mmap(nullptr, PAGE_SIZE, PROT_NONE, MAP_PRIVATE | MAP_ANONYMOUS, in TEST_F() 197 extinfo.reserved_size = PAGE_SIZE; in TEST_F() 221 void* start = mmap(nullptr, PAGE_SIZE, PROT_NONE, MAP_PRIVATE | MAP_ANONYMOUS, in TEST_F() 227 extinfo.reserved_size = PAGE_SIZE; in TEST_F() 233 reinterpret_cast<char*>(start) + PAGE_SIZE)); in TEST_F()
|