Home
last modified time | relevance | path

Searched refs:PAGE_SIZE (Results 1 – 19 of 19) sorted by relevance

/bionic/libc/include/
Dlimits.h118 #ifndef PAGE_SIZE
119 #define PAGE_SIZE 4096 macro
122 #define PAGESIZE PAGE_SIZE
126 #define PAGE_MASK (~(PAGE_SIZE - 1))
Dpthread.h128 #define PTHREAD_STACK_MIN (4 * PAGE_SIZE)
130 #define PTHREAD_STACK_MIN (2 * PAGE_SIZE)
/bionic/linker/
Dlinker_allocator.cpp25 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()
Dlinker_phdr.cpp375 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()
Dlinker.h85 #define PAGE_END(x) PAGE_START((x) + (PAGE_SIZE-1))
Dlinker.cpp798 if ((file_offset % PAGE_SIZE) != 0) { in load_library()
/bionic/libc/kernel/uapi/asm-generic/
Dshmparam.h21 #define SHMLBA PAGE_SIZE
/bionic/libc/kernel/uapi/linux/
Dresource.h70 #define MLOCK_LIMIT ((PAGE_SIZE > 64*1024) ? PAGE_SIZE : 64*1024)
Dbinfmts.h24 #define MAX_ARG_STRLEN (PAGE_SIZE * 32)
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
Dkvm.h330 #define KVM_COALESCED_MMIO_MAX ((PAGE_SIZE - sizeof(struct kvm_coalesced_mmio_ring)) / sizeof(s…
/bionic/libc/bionic/
Dpthread_attr.cpp45 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()
Dlibc_init_static.cpp60 #define PAGE_END(x) PAGE_START((x) + (PAGE_SIZE-1))
Dsysconf.cpp131 result = (int) (total / (PAGE_SIZE/1024)); in __get_meminfo()
235 return PAGE_SIZE; in sysconf()
Dpthread_create.cpp175 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()
Dndk_cruft.cpp51 unsigned int __page_size = PAGE_SIZE;
Dstubs.cpp463 return PAGE_SIZE; in getpagesize()
/bionic/libc/arch-x86/bionic/
D__set_tls.c50 result->limit = PAGE_SIZE; in __init_user_desc()
/bionic/tests/
Ddlext_test.cpp57 #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()