Move SSIZE and DELAY() definitions to sys/arch/mips/include/mips_param.h.

Update comment in pmax/include/param.h (pr 3988).
This commit is contained in:
jonathan 1997-08-20 03:47:17 +00:00
parent 3153b91d91
commit e14d1d4768
2 changed files with 10 additions and 18 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: mips_param.h,v 1.5 1997/07/07 03:54:30 jonathan Exp $ */
/* $NetBSD: mips_param.h,v 1.6 1997/08/20 03:47:17 jonathan Exp $ */
/*
* Architecture name.
@ -12,6 +12,9 @@
* to be the number of per-process-wired kernel-stack pages/PTES.
*/
#define SSIZE 1 /* initial stack size/NBPG */
#define SINCR 1 /* increment of stack/NBPG */
#define UPAGES 2 /* pages of u-area */
#define UADDR 0xffffc000 /* address of u */
#define USPACE (UPAGES*NBPG) /* size of u-area in bytes */
@ -96,6 +99,9 @@ extern int (*Mach_splnet) __P((void)), (*Mach_splbio) __P((void)),
#define splstatclock() ((*Mach_splstatclock)())
extern void delay __P((int n));
extern int cpuspeed;
#define DELAY(n) { register int N = cpuspeed * (n); while (--N > 0); }
#endif /* _LOCORE */
#endif /* !_LOCORE */
#endif /* _KERNEL */

View File

@ -1,4 +1,4 @@
/* $NetBSD: param.h,v 1.21 1997/07/07 03:54:25 jonathan Exp $ */
/* $NetBSD: param.h,v 1.22 1997/08/20 03:47:19 jonathan Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@ -49,7 +49,7 @@
#include <mips/mips_param.h>
/*
* Machine dependent constants for DEC Station 3100.
* Machine dependent constants for mips-based DECstations.
*/
#define _MACHINE pmax
@ -68,13 +68,6 @@
#define CLSIZE 1
#define CLSIZELOG2 0
/*
* NOTE: SSIZE, SINCR and UPAGES must be multiples of CLSIZE.
* UPAGES, UADDR, USPACE defined in mips_param.h.
*/
#define SSIZE 1 /* initial stack size/NBPG */
#define SINCR 1 /* increment of stack/NBPG */
/*
* Constants related to network buffer management.
@ -101,10 +94,3 @@
#define NMBCLUSTERS 1024 /* map size, max cluster allocation */
#endif
#endif
#ifdef _KERNEL
#ifndef _LOCORE
extern int cpuspeed;
#define DELAY(n) { register int N = cpuspeed * (n); while (--N > 0); }
#endif
#endif /* !_KERNEL */