--- researchv9/sys/sun3/vm_machdep.c 2018/04/24 17:21:59 1.1 +++ researchv9/sys/sun3/vm_machdep.c 2018/04/24 17:30:12 1.1.1.2 @@ -903,7 +903,8 @@ getdfile() * Return the load memory address for the text segment. */ caddr_t -gettmem() +gettmem(up) +struct user *up; { return ((caddr_t)USRTEXT); @@ -912,10 +913,11 @@ gettmem() /* * Return the file byte offset for the text segment. */ -gettfile() +gettfile(up) +struct user *up; { - if (u.u_exdata.ux_mag == ZMAGIC) + if (up->u_exdata.ux_mag == ZMAGIC) return (0); else return (sizeof (u.u_exdata));