Lines Matching refs:edp
58 static int get_aout_head(struct vnode **vpp, struct exdata *edp, long *execsz,
137 struct exdata edp, edpout;
153 if (error = get_aout_head(&vp, &edp, execsz, &isdyn))
156 if (error = chkaout(&edp))
183 if (CURRENT_TOTAL_AVAILABLE_SWAP < btopr(edp.ux_dsize) + btopr(SSIZE))
203 getexinfo(&edp, &edpout, &pagetext, &pagedata);
208 if (error = execmap(edp.vp, edp.ux_txtorg, edp.ux_tsize,
209 (size_t)0, edp.ux_toffset, textprot, pagetext, 0))
211 if (error = execmap(edp.vp, edp.ux_datorg, edp.ux_dsize,
212 edp.ux_bsize, edp.ux_doffset, dataprot, pagedata, 0))
215 exenv.ex_bssbase = (caddr_t)edp.ux_datorg;
216 exenv.ex_brkbase = (caddr_t)edp.ux_datorg;
217 exenv.ex_brksize = edp.ux_dsize + edp.ux_bsize;
218 exenv.ex_magic = edp.ux_mag;
219 exenv.ex_vp = edp.vp;
277 get_aout_head(struct vnode **vpp, struct exdata *edp, long *execsz, int *isdyn)
326 edp->ux_mach = filhdr.a_machtype;
327 edp->ux_tsize = filhdr.a_text;
328 edp->ux_dsize = filhdr.a_data;
329 edp->ux_bsize = filhdr.a_bss;
330 edp->ux_mag = filhdr.a_magic;
331 edp->ux_toffset = gettfile(&filhdr);
332 edp->ux_doffset = getdfile(&filhdr);
333 edp->ux_txtorg = gettmem(&filhdr);
334 edp->ux_datorg = getdmem(&filhdr);
335 edp->ux_entloc = (caddr_t)(uintptr_t)filhdr.a_entry;
336 edp->vp = vp;