SCCS-vsn: usr.sbin/pstat/pstat.c 5.10
SCCS-vsn: bin/ps/ps.c 5.10
#endif not lint
#ifndef lint
#endif not lint
#ifndef lint
-static char sccsid[] = "@(#)ps.c 5.9 (Berkeley) %G%";
+static char sccsid[] = "@(#)ps.c 5.10 (Berkeley) %G%";
#endif not lint
#include <stdio.h>
#endif not lint
#include <stdio.h>
exit(1);
}
addr = (long) nl[X_SYSMAP].n_value;
exit(1);
}
addr = (long) nl[X_SYSMAP].n_value;
(void) lseek(kmem, addr, 0);
read(kmem, (char *) Sysmap, Syssize * sizeof (struct pte));
}
(void) lseek(kmem, addr, 0);
read(kmem, (char *) Sysmap, Syssize * sizeof (struct pte));
}
register p;
off_t newloc;
register p;
off_t newloc;
- newloc = loc & ~0xc0000000;
+ newloc = loc & ~KERNBASE;
- if ((loc & 0xc0000000) == 0) {
+ if ((loc & KERNBASE) == 0) {
fprintf(stderr, "Vtophys: translating non-kernel address\n");
return((off_t) -1);
}
fprintf(stderr, "Vtophys: translating non-kernel address\n");
return((off_t) -1);
}
#endif not lint
#ifndef lint
#endif not lint
#ifndef lint
-static char sccsid[] = "@(#)pstat.c 5.9 (Berkeley) %G%";
+static char sccsid[] = "@(#)pstat.c 5.10 (Berkeley) %G%";
#endif not lint
/*
* Print system stuff
*/
#endif not lint
/*
* Print system stuff
*/
-#define mask(x) (x&0377)
-#ifdef vax
-#define clear(x) ((int)x&0x7fffffff)
-#endif
-#ifdef tahoe
-#define clear(x) ((int)x&~0xc0000000)
-#endif
-
#include <sys/param.h>
#include <sys/dir.h>
#define KERNEL
#include <sys/param.h>
#include <sys/dir.h>
#define KERNEL
#include <machine/pte.h>
#include <stdio.h>
#include <machine/pte.h>
#include <stdio.h>
+#define mask(x) (x&0377)
+#define clear(x) ((int)x &~ KERNBASE)
+
char *fcore = "/dev/kmem";
char *fmem = "/dev/mem";
char *fnlist = "/vmunix";
char *fcore = "/dev/kmem";
char *fmem = "/dev/mem";
char *fnlist = "/vmunix";
o = addr & PGOFSET;
addr >>= PGSHIFT;
addr &= PG_PFNUM;
o = addr & PGOFSET;
addr >>= PGSHIFT;
addr &= PG_PFNUM;