Lines Matching refs:text

220 vmem_t	*text_arena;				/* module text arena */
273 * Beginning and end of the kernel's dynamic text/data segments.
843 mp->text = _text;
849 cp->mod_text = mp->text;
857 _kobj_printf(ops, "\ttext: 0x%p", mp->text);
925 } else if (mp->text == NULL) {
926 mp->text = (char *)shp->sh_addr;
951 mp->text_size = _etext - mp->text;
954 cp->mod_text = mp->text;
961 kmp->text_size = (size_t)(mp->text - kmp->text);
968 _kobj_printf(ops, "\ttext:0x%p", mp->text);
1214 relaent, (Addr)mp->text) < 0)
1221 kobj_sync_instruction_memory(mp->text, mp->text_size);
1487 modinfo->mi_base = mp->text;
1984 modp->mod_text = mp->text;
2013 _kobj_printf(ops, "\ttext:0x%p", mp->text);
2079 kobj_sync_instruction_memory(mp->text, mp->text_size);
2158 _kobj_printf(ops, "text for %s ", mp->filename);
2159 _kobj_printf(ops, "was at %p\n", mp->text);
2160 mp->text = NULL; /* don't actually free it */
2261 if (mp->text)
2262 vmem_free(text_arena, mp->text, mp->text_size);
2280 uintptr_t text = 0, data, textptr;
2289 * for text, data, (also bss that is already assigned)
2303 mp->text = kobj_segbrk(&_etext, mp->text_size,
2306 * If we can't grow the text segment, try the
2309 if (mp->text == NULL) {
2310 mp->text = kobj_segbrk(&_edata, mp->text_size,
2316 if (mp->text == NULL || mp->data == NULL)
2343 mp->text = kobj_text_alloc(text_arena, mp->text_size);
2346 * a remap is taking place. Align the text ptr relative
2351 mp->text, mp->text_size)) {
2352 off_t off = (uintptr_t)mp->text & PAGEOFFSET;
2355 caddr_t orig = mp->text - off;
2359 text = ALIGN((uintptr_t)dest, tp->align);
2380 textptr = (uintptr_t)mp->text;
2387 if (text == 0)
2388 text = ALIGN((uintptr_t)mp->text, tp->align);
2398 bits_ptr = text;
2426 text = bits_ptr;
2687 * i.e. text and data. We skip a SHT_NOBITS section since it occupies
4278 * If the text is not contained in the heap, then it is not contained
4280 * We allocate a read/write mapping for this module's text to allow
4281 * the text to be patched without calling hot_patch_kernel_text()
4284 if (!vmem_contains(heaptext_arena, mp->text, mp->text_size)) {
4285 uintptr_t text = (uintptr_t)mp->text;
4289 size_t sz = ((text + size + PAGESIZE - 1) & PAGEMASK) -
4290 (text & PAGEMASK);
4294 for (i = text & PAGEMASK; i < text + size; i += PAGESIZE) {
4302 mp->textwin = mp->textwin_base + (text & PAGEOFFSET);
4304 mp->textwin = mp->text;
4311 uintptr_t text = (uintptr_t)mp->text;
4313 size_t size = (((text + tsize + PAGESIZE - 1) & PAGEMASK) -
4314 (text & PAGEMASK));