diff --git a/sys/arch/next68k/next68k/machdep.c b/sys/arch/next68k/next68k/machdep.c index e721dc21595e..977065ab37b6 100644 --- a/sys/arch/next68k/next68k/machdep.c +++ b/sys/arch/next68k/next68k/machdep.c @@ -1,4 +1,4 @@ -/* $NetBSD: machdep.c,v 1.27 1999/11/13 00:30:40 thorpej Exp $ */ +/* $NetBSD: machdep.c,v 1.28 1999/12/04 21:36:00 ragge Exp $ */ /* * Copyright (c) 1988 University of Utah. @@ -114,7 +114,7 @@ #include -#define MAXMEM 64*1024*CLSIZE /* XXX - from cmap.h */ +#define MAXMEM 64*1024 /* XXX - from cmap.h */ /* the following is used externally (sysctl_hw) */ char machine[] = MACHINE; /* from */ @@ -360,7 +360,7 @@ cpu_startup() * "base" pages for the rest. */ curbuf = (vaddr_t) buffers + (i * MAXBSIZE); - curbufsize = CLBYTES * ((i < residual) ? (base+1) : base); + curbufsize = NBPG * ((i < residual) ? (base+1) : base); while (curbufsize) { pg = uvm_pagealloc(NULL, 0, NULL, 0); @@ -406,7 +406,7 @@ cpu_startup() #endif format_bytes(pbuf, sizeof(pbuf), ptoa(uvmexp.free)); printf("avail memory = %s\n", pbuf); - format_bytes(pbuf, sizeof(pbuf), bufpages * CLBYTES); + format_bytes(pbuf, sizeof(pbuf), bufpages * NBPG); printf("using %d buffers containing %s of memory\n", nbuf, pbuf); /* @@ -791,7 +791,7 @@ long dumplo = 0; /* blocks */ /* * This is called by main to set dumplo and dumpsize. - * Dumps always skip the first CLBYTES of disk space + * Dumps always skip the first NBPG of disk space * in case there might be a disk label stored there. * If there is extra space, put dump at the end to * reduce the chance that swapping trashes it. @@ -817,7 +817,7 @@ cpu_dumpconf() /* * Check do see if we will fit. Note we always skip the - * first CLBYTES in case there is a disk label there. + * first NBPG in case there is a disk label there. */ if (nblks < (ctod(dumpsize) + chdrsize + ctod(1))) { dumpsize = 0;