SCCS-vsn: sys/vax/mba/mba.c 4.2
SCCS-vsn: sys/kern/tty.c 4.2
SCCS-vsn: sys/vax/uba/uba.c 4.2
SCCS-vsn: sys/vm/vm_swap.c 4.2
SCCS-vsn: sys/vax/uba/up.c 4.2
SCCS-vsn: sys/kern/kern_resource.c 4.2
SCCS-vsn: sys/kern/subr_prf.c 4.2
SCCS-vsn: sys/vax/vax/machdep.c 4.2
-/* kern_resource.c 4.1 %G% */
+/* kern_resource.c 4.2 %G% */
#include "../h/param.h"
#include "../h/systm.h"
#include "../h/param.h"
#include "../h/systm.h"
plock(ip);
for (i=0; i<sizeof(acctbuf.ac_comm); i++)
acctbuf.ac_comm[i] = u.u_comm[i];
plock(ip);
for (i=0; i<sizeof(acctbuf.ac_comm); i++)
acctbuf.ac_comm[i] = u.u_comm[i];
- acctbuf.ac_utime = compress(u.u_vm.vm_utime);
- acctbuf.ac_stime = compress(u.u_vm.vm_stime);
- acctbuf.ac_etime = compress(time - u.u_start);
+ acctbuf.ac_utime = compress((long)u.u_vm.vm_utime);
+ acctbuf.ac_stime = compress((long)u.u_vm.vm_stime);
+ acctbuf.ac_etime = compress((long)(time - u.u_start));
acctbuf.ac_btime = u.u_start;
acctbuf.ac_uid = u.u_ruid;
acctbuf.ac_gid = u.u_rgid;
acctbuf.ac_mem = 0;
if (i = u.u_vm.vm_utime + u.u_vm.vm_stime)
acctbuf.ac_mem = (u.u_vm.vm_ixrss + u.u_vm.vm_idsrss) / i;
acctbuf.ac_btime = u.u_start;
acctbuf.ac_uid = u.u_ruid;
acctbuf.ac_gid = u.u_rgid;
acctbuf.ac_mem = 0;
if (i = u.u_vm.vm_utime + u.u_vm.vm_stime)
acctbuf.ac_mem = (u.u_vm.vm_ixrss + u.u_vm.vm_idsrss) / i;
- acctbuf.ac_io = compress(u.u_vm.vm_inblk + u.u_vm.vm_oublk);
+ acctbuf.ac_io = compress((long)(u.u_vm.vm_inblk + u.u_vm.vm_oublk));
acctbuf.ac_tty = u.u_ttyd;
acctbuf.ac_flag = u.u_acflag;
siz = ip->i_size;
acctbuf.ac_tty = u.u_ttyd;
acctbuf.ac_flag = u.u_acflag;
siz = ip->i_size;
* with 3 bits base-8 exponent, 13 bits fraction.
*/
compress(t)
* with 3 bits base-8 exponent, 13 bits fraction.
*/
compress(t)
{
register exp = 0, round = 0;
{
register exp = 0, round = 0;
-/* subr_prf.c 4.1 %G% */
+/* subr_prf.c 4.2 %G% */
#include "../h/param.h"
#include "../h/systm.h"
#include "../h/param.h"
#include "../h/systm.h"
* If destination is console then the last MSGBUFS characters
* are saved in msgbuf for inspection later.
*/
* If destination is console then the last MSGBUFS characters
* are saved in msgbuf for inspection later.
*/
putchar(c, trace)
register c;
{
putchar(c, trace)
register c;
{
#ifdef TRACE
if (trace) {
#ifdef TRACE
if (trace) {
/*
* TTY subroutines common to more than one line discipline
/*
* TTY subroutines common to more than one line discipline
/*
* Common code for tty ioctls.
*/
/*
* Common code for tty ioctls.
*/
ttioctl(com, tp, addr, dev, flag)
register struct tty *tp;
caddr_t addr;
ttioctl(com, tp, addr, dev, flag)
register struct tty *tp;
caddr_t addr;
#include "../h/param.h"
#include "../h/buf.h"
#include "../h/param.h"
#include "../h/buf.h"
-mbainit(mbanum)
- int mbanum;
+mbainit(mbano)
+ int mbano;
{
register struct pte *b;
register int i;
{
register struct pte *b;
register int i;
register struct mba_regs *mbap;
unsigned v;
register struct mba_regs *mbap;
unsigned v;
v = btop((int)mi->mi_phys);
b = mi->mi_map;
for (i = 0; i < 8192; i += NBPG) {
v = btop((int)mi->mi_phys);
b = mi->mi_map;
for (i = 0; i < 8192; i += NBPG) {
mbap = mi->mi_loc;
mbap->mba_cr = MBAINIT;
mbap->mba_cr = MBAIE;
mbap = mi->mi_loc;
mbap->mba_cr = MBAINIT;
mbap->mba_cr = MBAIE;
#include "../h/param.h"
#include "../h/map.h"
#include "../h/param.h"
#include "../h/map.h"
{
struct uba_regs *up = (struct uba_regs *)UBA0;
register struct cdevsw *cdp;
{
struct uba_regs *up = (struct uba_regs *)UBA0;
register struct cdevsw *cdp;
s = spl6();
printf("UBA RESET:");
s = spl6();
printf("UBA RESET:");
#include "../conf/up.h"
/*
#include "../conf/up.h"
/*
long sz, bn;
if (upwstart == 0) {
long sz, bn;
if (upwstart == 0) {
- timeout((caddr_t)upwatch, 0, HZ);
+ timeout(upwatch, (caddr_t)0, HZ);
upwstart++;
}
xunit = minor(bp->b_dev) & 077;
upwstart++;
}
xunit = minor(bp->b_dev) & 077;
else
uptab.b_active = 0; /* To force retry */
if (uptab.b_errcnt > 27)
else
uptab.b_active = 0; /* To force retry */
if (uptab.b_errcnt > 27)
- deverror(bp, upaddr->upcs2, upaddr->uper1);
+ deverror(bp, (int)upaddr->upcs2,
+ (int)upaddr->uper1);
/*
* If this was a correctible ECC error, let upecc
* do the dirty work to correct it. If upecc
/*
* If this was a correctible ECC error, let upecc
* do the dirty work to correct it. If upecc
if (uptab.b_actf && uptab.b_active == 0)
if (upstart())
needie = 0;
if (uptab.b_actf && uptab.b_active == 0)
if (upstart())
needie = 0;
if (needie)
upaddr->upcs1 = IE;
}
if (needie)
upaddr->upcs1 = IE;
}
- timeout((caddr_t)upwatch, 0, HZ);
+ timeout(upwatch, (caddr_t)0, HZ);
if (uptab.b_active == 0) {
for (i = 0; i < NUP; i++)
if (uputab[i].b_active)
if (uptab.b_active == 0) {
for (i = 0; i < NUP; i++)
if (uputab[i].b_active)
#include "../h/param.h"
#include "../h/systm.h"
#include "../h/param.h"
#include "../h/systm.h"
#include "../h/cons.h"
#include "../h/reboot.h"
#include "../h/cons.h"
#include "../h/reboot.h"
-char version[] = "VM/UNIX (Berkeley Version 4.1) %H% \n";
+char version[] = "VM/UNIX (Berkeley Version 4.2) %H% \n";
int icode[] =
{
0x9f19af9f, /* pushab [&"init.vm",0]; pushab */
int icode[] =
{
0x9f19af9f, /* pushab [&"init.vm",0]; pushab */
#include "../h/param.h"
#include "../h/systm.h"
#include "../h/param.h"
#include "../h/systm.h"
- register struct a {
- char *sname;
- } *uap;
register struct inode *ip;
dev_t dev;
register struct swdevt *sp;
register struct inode *ip;
dev_t dev;
register struct swdevt *sp;
- uap = (struct a *)u.u_ap;
ip = namei(uchar, 0);
if (ip == NULL)
return;
ip = namei(uchar, 0);
if (ip == NULL)
return;