SCCS-vsn: sys/vax/uba/dh.c 4.26
SCCS-vsn: sys/kern/kern_physio.c 4.14
SCCS-vsn: sys/kern/vfs_bio.c 4.14
SCCS-vsn: sys/kern/vfs_cluster.c 4.14
SCCS-vsn: sys/vax/vax/autoconf.c 4.18
SCCS-vsn: sys/vax/vax/mem.c 4.2
-/* kern_physio.c 4.13 %G% */
+/* kern_physio.c 4.14 %G% */
#include "../h/param.h"
#include "../h/systm.h"
#include "../h/param.h"
#include "../h/systm.h"
long nreada;
long ncache;
long nwrite;
long nreada;
long ncache;
long nwrite;
* page push, when the I/O completes, it is inserted
* in a list of cleaned pages to be processed by the pageout daemon.
*/
* page push, when the I/O completes, it is inserted
* in a list of cleaned pages to be processed by the pageout daemon.
*/
-struct buf swbuf[NSWBUF];
-short swsize[NSWBUF]; /* CAN WE JUST USE B_BCOUNT? */
-int swpf[NSWBUF];
+struct buf *swbuf;
+short *swsize; /* CAN WE JUST USE B_BCOUNT? */
+int *swpf;
io_info.bufcount[i]++;
#endif
notavail(bp);
io_info.bufcount[i]++;
#endif
notavail(bp);
-/* vfs_bio.c 4.13 %G% */
+/* vfs_bio.c 4.14 %G% */
#include "../h/param.h"
#include "../h/systm.h"
#include "../h/param.h"
#include "../h/systm.h"
long nreada;
long ncache;
long nwrite;
long nreada;
long ncache;
long nwrite;
* page push, when the I/O completes, it is inserted
* in a list of cleaned pages to be processed by the pageout daemon.
*/
* page push, when the I/O completes, it is inserted
* in a list of cleaned pages to be processed by the pageout daemon.
*/
-struct buf swbuf[NSWBUF];
-short swsize[NSWBUF]; /* CAN WE JUST USE B_BCOUNT? */
-int swpf[NSWBUF];
+struct buf *swbuf;
+short *swsize; /* CAN WE JUST USE B_BCOUNT? */
+int *swpf;
io_info.bufcount[i]++;
#endif
notavail(bp);
io_info.bufcount[i]++;
#endif
notavail(bp);
-/* vfs_cluster.c 4.13 %G% */
+/* vfs_cluster.c 4.14 %G% */
#include "../h/param.h"
#include "../h/systm.h"
#include "../h/param.h"
#include "../h/systm.h"
long nreada;
long ncache;
long nwrite;
long nreada;
long ncache;
long nwrite;
* page push, when the I/O completes, it is inserted
* in a list of cleaned pages to be processed by the pageout daemon.
*/
* page push, when the I/O completes, it is inserted
* in a list of cleaned pages to be processed by the pageout daemon.
*/
-struct buf swbuf[NSWBUF];
-short swsize[NSWBUF]; /* CAN WE JUST USE B_BCOUNT? */
-int swpf[NSWBUF];
+struct buf *swbuf;
+short *swsize; /* CAN WE JUST USE B_BCOUNT? */
+int *swpf;
io_info.bufcount[i]++;
#endif
notavail(bp);
io_info.bufcount[i]++;
#endif
notavail(bp);
-/* dh.c 4.25 81/02/26 */
+/* dh.c 4.26 81/02/27 */
#include "dh.h"
#if NDH > 0
#include "dh.h"
#if NDH > 0
/* 512+ is a kludge to try to get around a hardware problem */
dh_ubinfo[ui->ui_ubanum] =
uballoc(ui->ui_ubanum, (caddr_t)cfree,
/* 512+ is a kludge to try to get around a hardware problem */
dh_ubinfo[ui->ui_ubanum] =
uballoc(ui->ui_ubanum, (caddr_t)cfree,
- 512+NCLIST*sizeof(struct cblock), 0);
+ 512+nclist*sizeof(struct cblock), 0);
cbase[ui->ui_ubanum] = dh_ubinfo[ui->ui_ubanum]&0x3ffff;
}
if ((dhact&(1<<dh)) == 0) {
cbase[ui->ui_ubanum] = dh_ubinfo[ui->ui_ubanum]&0x3ffff;
}
if ((dhact&(1<<dh)) == 0) {
printf(" dh");
ubarelse(uban, &dh_ubinfo[uban]);
dh_ubinfo[uban] = uballoc(uban, (caddr_t)cfree,
printf(" dh");
ubarelse(uban, &dh_ubinfo[uban]);
dh_ubinfo[uban] = uballoc(uban, (caddr_t)cfree,
- 512+NCLIST*sizeof (struct cblock), 0);
+ 512+nclist*sizeof (struct cblock), 0);
cbase[uban] = dh_ubinfo[uban]&0x3ffff;
dh = 0;
for (dh = 0; dh < NDH; dh++) {
cbase[uban] = dh_ubinfo[uban]&0x3ffff;
dh = 0;
for (dh = 0; dh < NDH; dh++) {
-/* autoconf.c 4.17 81/02/27 */
+/* autoconf.c 4.18 81/02/27 */
/*
* Configure the system for the current machine.
/*
* Configure the system for the current machine.
}
mbafind(nxv, nxp);
nummba++;
}
mbafind(nxv, nxp);
nummba++;
#else
printf("mba's");
goto unsupp;
#else
printf("mba's");
goto unsupp;
- if (u.u_uid != 0) {
- if ((caddr_t)u.u_offset < (caddr_t)&umbabeg &&
- (caddr_t)u.u_offset + u.u_count >= (caddr_t)&umbabeg)
- goto fault;
- if ((caddr_t)u.u_offset >= (caddr_t)&umbabeg &&
- (caddr_t)u.u_offset < (caddr_t)&umbaend)
- goto fault;
- }
+ if ((caddr_t)u.u_offset < (caddr_t)&umbabeg &&
+ (caddr_t)u.u_offset + u.u_count >= (caddr_t)&umbabeg)
+ goto fault;
+ if ((caddr_t)u.u_offset >= (caddr_t)&umbabeg &&
+ (caddr_t)u.u_offset < (caddr_t)&umbaend)
+ goto fault;
if (!kernacc((caddr_t)u.u_offset, u.u_count, B_READ))
goto fault;
if (copyout((caddr_t)u.u_offset, u.u_base, u.u_count))
if (!kernacc((caddr_t)u.u_offset, u.u_count, B_READ))
goto fault;
if (copyout((caddr_t)u.u_offset, u.u_base, u.u_count))