SCCS-vsn: sys/vax/vax/mem.c 3.2
mtpr(TBIS, vmmap);
o = (int)u.u_offset & PGOFSET;
c = min((unsigned)(NBPG - o), u.u_count);
mtpr(TBIS, vmmap);
o = (int)u.u_offset & PGOFSET;
c = min((unsigned)(NBPG - o), u.u_count);
+ c = min(c, (unsigned)((int)u.u_base & PGOFSET));
if (copyout((caddr_t)&vmmap[o], u.u_base, c))
goto fault;
u.u_count -= c;
if (copyout((caddr_t)&vmmap[o], u.u_base, c))
goto fault;
u.u_count -= c;
mtpr(TBIS, vmmap);
o = (int)u.u_offset & PGOFSET;
c = min((unsigned)(NBPG - o), u.u_count);
mtpr(TBIS, vmmap);
o = (int)u.u_offset & PGOFSET;
c = min((unsigned)(NBPG - o), u.u_count);
+ c = min(c, (unsigned)((int)u.u_base & PGOFSET));
if (copyin(u.u_base, (caddr_t)&vmmap[o], c))
goto fault;
u.u_count -= c;
if (copyin(u.u_base, (caddr_t)&vmmap[o], c))
goto fault;
u.u_count -= c;