Lines Matching refs:text
58 * On x86_64 systems, kernel extension text must remain within 2GB of the
59 * kernel's text segment. To ensure this happens, we snag 2GB of kernel VM
67 kernel_segment_command_t *text = NULL;
77 text = getsegbyname(SEG_TEXT);
78 text_start = vm_map_trunc_page(text->vmaddr);
80 text_end = vm_map_round_page(text->vmaddr + text->vmsize);
117 printf("kext submap [0x%lx - 0x%lx], kernel text [0x%lx - 0x%lx]\n",
120 VM_KERNEL_UNSLIDE(text->vmaddr),
121 VM_KERNEL_UNSLIDE(text->vmaddr + text->vmsize));
124 kernel_segment_command_t *text = NULL;
134 text = getsegbyname(SEG_TEXT);
135 text_start = vm_map_trunc_page(text->vmaddr);
137 text_end = vm_map_round_page(text->vmaddr + text->vmsize);
144 printf("kext submap [0x%lx - 0x%lx], kernel text [0x%lx - 0x%lx]\n",
147 VM_KERNEL_UNSLIDE(text->vmaddr),
148 VM_KERNEL_UNSLIDE(text->vmaddr + text->vmsize));
194 /* Check that the memory is reachable by kernel text */