SCCS-vsn: sys/vax/vax/autoconf.c 7.7
SCCS-vsn: sys/tahoe/vba/vba.c 1.8
SCCS-vsn: sys/vax/vax/autoconf.c 7.7
-/* vba.c 1.7 87/04/06 */
+/* vba.c 1.8 87/06/06 */
/*
* Tahoe VERSAbus adapator support routines.
/*
* Tahoe VERSAbus adapator support routines.
#include "vmmac.h"
#include "proc.h"
#include "syslog.h"
#include "vmmac.h"
#include "proc.h"
#include "syslog.h"
#include "../tahoevba/vbavar.h"
#include "../tahoevba/vbavar.h"
n = roundup(xsize, NBPG);
vb->vb_bufsize = n;
if (vb->vb_rawbuf == 0)
n = roundup(xsize, NBPG);
vb->vb_bufsize = n;
if (vb->vb_rawbuf == 0)
- vb->vb_rawbuf = calloc(n);
+ vb->vb_rawbuf = (caddr_t)malloc(n, M_DEVBUF, M_NOWAIT);
if ((int)vb->vb_rawbuf & PGOFSET)
panic("vbinit pgoff");
vb->vb_physbuf = vtoph((struct proc *)0, vb->vb_rawbuf);
if ((int)vb->vb_rawbuf & PGOFSET)
panic("vbinit pgoff");
vb->vb_physbuf = vtoph((struct proc *)0, vb->vb_rawbuf);
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
*
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
*
- * @(#)autoconf.c 7.6 (Berkeley) %G%
+ * @(#)autoconf.c 7.7 (Berkeley) %G%
#include "buf.h"
#include "dkstat.h"
#include "vm.h"
#include "buf.h"
#include "dkstat.h"
#include "vm.h"
#include "conf.h"
#include "dmap.h"
#include "reboot.h"
#include "conf.h"
#include "dmap.h"
#include "reboot.h"
* Initialize the UNIBUS, by freeing the map
* registers and the buffered data path registers
*/
* Initialize the UNIBUS, by freeing the map
* registers and the buffered data path registers
*/
- uhp->uh_map = (struct map *)calloc(UAMSIZ * sizeof (struct map));
+ uhp->uh_map = (struct map *)
+ malloc(UAMSIZ * sizeof (struct map), M_DEVBUF, M_NOWAIT);
*/
#if VAX8600
if (cpu == VAX_8600)
*/
#if VAX8600
if (cpu == VAX_8600)
- uhp->uh_vec = (int(**)())calloc(512);
+ uhp->uh_vec = (int(**)())malloc(512, M_DEVBUF, M_NOWAIT);
else
#endif
if (numuba == 0)
else
#endif
if (numuba == 0)
else if (numuba == 1)
uhp->uh_vec = UNI1vec;
else
else if (numuba == 1)
uhp->uh_vec = UNI1vec;
else
- uhp->uh_vec = (int(**)())calloc(512);
+ uhp->uh_vec = (int(**)())malloc(512, M_DEVBUF, M_NOWAIT);
#endif
for (i = 0; i < 128; i++)
uhp->uh_vec[i] =
#endif
for (i = 0; i < 128; i++)
uhp->uh_vec[i] =