From 8001e23cd0c8fc81d03988e02039dbfbd8057936 Mon Sep 17 00:00:00 2001 From: pk Date: Thu, 10 May 2001 11:01:08 +0000 Subject: [PATCH] * reserve NBPG et.al. for kernel usage only. * remove obsoleted comment on `physmap'. --- sys/arch/sparc/include/param.h | 33 +++++++++++---------------------- 1 file changed, 11 insertions(+), 22 deletions(-) diff --git a/sys/arch/sparc/include/param.h b/sys/arch/sparc/include/param.h index 1cf6b9c0af6c..8d48775608bc 100644 --- a/sys/arch/sparc/include/param.h +++ b/sys/arch/sparc/include/param.h @@ -1,4 +1,4 @@ -/* $NetBSD: param.h,v 1.46 2001/03/01 15:59:04 pk Exp $ */ +/* $NetBSD: param.h,v 1.47 2001/05/10 11:01:08 pk Exp $ */ /* * Copyright (c) 1992, 1993 @@ -154,27 +154,6 @@ extern int nbpg, pgofset, pgshift; */ #define bdbtofsb(bn) ((bn) / (BLKDEV_IOSIZE / DEV_BSIZE)) -/* - * dvmamap manages a range of DVMA addresses intended to create double - * mappings of physical memory. In a way, `dvmamap' is a submap of the - * VM map `phys_map'. The difference is the use of the `resource map' - * routines to manage page allocation, allowing DVMA addresses to be - * allocated and freed from within interrupt routines. - * - * Note that `phys_map' can still be used to allocate memory-backed pages - * in DVMA space. - */ -#if defined(_KERNEL) || defined(_STANDALONE) -#ifndef _LOCORE - -extern void delay __P((unsigned int)); -#define DELAY(n) delay(n) - -extern int cputyp; - -#endif /* _LOCORE */ -#endif /* _KERNEL */ - /* * Values for the cputyp variable. */ @@ -183,6 +162,15 @@ extern int cputyp; #define CPU_SUN4M 2 #define CPU_SUN4U 3 +#if defined(_KERNEL) || defined(_STANDALONE) +#ifndef _LOCORE + +extern int cputyp; + +extern void delay __P((unsigned int)); +#define DELAY(n) delay(n) +#endif /* _LOCORE */ + /* * Shorthand CPU-type macros. Enumerate all eight cases. * Let compiler optimize away code conditional on constants. @@ -271,3 +259,4 @@ extern int cputyp; # define PGOFSET pgofset # define PGSHIFT pgshift #endif +#endif /* _KERNEL || _STANDALONE */