Searched refs:firstpage (Results 1 – 5 of 5) sorted by relevance
/freebsd/stand/common/ |
H A D | load_elf.c | 66 caddr_t firstpage; member 281 ef->firstpage = malloc(PAGE_SIZE); in __elfN() 282 if (ef->firstpage == NULL) { in __elfN() 300 bytes_read = VECTX_READ(VECTX_HANDLE(ef), ef->firstpage, PAGE_SIZE); in __elfN() 306 ehdr = ef->ehdr = (Elf_Ehdr *)ef->firstpage; in __elfN() 340 if (ef->firstpage != NULL) { in __elfN() 341 free(ef->firstpage); in __elfN() 342 ef->firstpage = NULL; in __elfN() 507 if (ef.firstpage) in __elfN() 508 free(ef.firstpage); in __elfN() [all …]
|
/freebsd/sys/sys/ |
H A D | imgact.h | 70 struct sf_buf *firstpage; /* first page that we mapped */ member
|
/freebsd/sys/kern/ |
H A D | kern_exec.c | 955 if (imgp->firstpage != NULL) in do_execve() 1062 if (imgp->firstpage != NULL) in exec_map_first_page() 1081 imgp->firstpage = sf_buf_alloc(m, 0); in exec_map_first_page() 1082 imgp->image_header = (char *)sf_buf_kva(imgp->firstpage); in exec_map_first_page() 1092 if (imgp->firstpage != NULL) { in exec_unmap_first_page() 1093 m = sf_buf_page(imgp->firstpage); in exec_unmap_first_page() 1094 sf_buf_free(imgp->firstpage); in exec_unmap_first_page() 1095 imgp->firstpage = NULL; in exec_unmap_first_page()
|
H A D | link_elf.c | 980 caddr_t firstpage, segbase; in link_elf_load_file() local 1016 firstpage = NULL; in link_elf_load_file() 1022 firstpage = NULL; in link_elf_load_file() 1030 firstpage = malloc(PAGE_SIZE, M_LINKER, M_WAITOK); in link_elf_load_file() 1031 hdr = (Elf_Ehdr *)firstpage; in link_elf_load_file() 1032 error = vn_rdwr(UIO_READ, nd.ni_vp, firstpage, PAGE_SIZE, 0, in link_elf_load_file() 1083 phdr = (Elf_Phdr *) (firstpage + hdr->e_phoff); in link_elf_load_file() 1345 free(firstpage, M_LINKER); in link_elf_load_file()
|
H A D | imgact_elf.c | 872 if (imgp->firstpage) in __elfN()
|