summaryrefslogtreecommitdiff
path: root/sys/arch/sparc/include
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2002-03-15 00:06:09 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2002-03-15 00:06:09 +0000
commit410da4ddde062db4bb7b750a01b474d3cc2438f7 (patch)
tree45d0b40af63247fd518db45fa980e2f0ee4efe84 /sys/arch/sparc/include
parentcc75f8033dc8d831574fd890e4a5b1a90405e682 (diff)
The previous commit broke the bootblocks, since uvmexp is not available
there. Win some uglyness points in fixing this.
Diffstat (limited to 'sys/arch/sparc/include')
-rw-r--r--sys/arch/sparc/include/param.h32
1 files changed, 13 insertions, 19 deletions
diff --git a/sys/arch/sparc/include/param.h b/sys/arch/sparc/include/param.h
index 2772902ae78..e9cab79c58e 100644
--- a/sys/arch/sparc/include/param.h
+++ b/sys/arch/sparc/include/param.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: param.h,v 1.25 2002/03/14 01:26:43 millert Exp $ */
+/* $OpenBSD: param.h,v 1.26 2002/03/15 00:06:08 miod Exp $ */
/* $NetBSD: param.h,v 1.29 1997/03/10 22:50:37 pk Exp $ */
/*
@@ -208,12 +208,6 @@ extern int mmumod;
# define CPU_ISSUN4 (cputyp == CPU_SUN4)
# define CPU_ISSUN4OR4C (cputyp == CPU_SUN4 || cputyp == CPU_SUN4C)
# define CPU_ISSUN4COR4M (cputyp == CPU_SUN4C || cputyp == CPU_SUN4M)
-# define NBPG uvmexp.pagesize
-# define PGOFSET uvmexp.pagemask
-# define PGSHIFT uvmexp.pageshift
-# define PAGE_SIZE uvmexp.pagesize
-# define PAGE_MASK uvmexp.pagemask
-# define PAGE_SHIFT uvmexp.pageshift
#elif defined(SUN4M) && defined(SUN4C) && !defined(SUN4)
# define CPU_ISSUN4M (cputyp == CPU_SUN4M)
# define CPU_ISSUN4C (cputyp == CPU_SUN4C)
@@ -232,12 +226,6 @@ extern int mmumod;
# define CPU_ISSUN4 (cputyp == CPU_SUN4)
# define CPU_ISSUN4OR4C (cputyp == CPU_SUN4)
# define CPU_ISSUN4COR4M (cputyp == CPU_SUN4M)
-# define NBPG uvmexp.pagesize
-# define PGOFSET uvmexp.pagemask
-# define PGSHIFT uvmexp.pageshift
-# define PAGE_SIZE uvmexp.pagesize
-# define PAGE_MASK uvmexp.pagemask
-# define PAGE_SHIFT uvmexp.pageshift
#elif defined(SUN4M) && !defined(SUN4C) && !defined(SUN4)
# define CPU_ISSUN4M (1)
# define CPU_ISSUN4C (0)
@@ -256,12 +244,6 @@ extern int mmumod;
# define CPU_ISSUN4 (cputyp == CPU_SUN4)
# define CPU_ISSUN4OR4C (1)
# define CPU_ISSUN4COR4M (cputyp == CPU_SUN4C)
-# define NBPG uvmexp.pagesize
-# define PGOFSET uvmexp.pagemask
-# define PGSHIFT uvmexp.pageshift
-# define PAGE_SIZE uvmexp.pagesize
-# define PAGE_MASK uvmexp.pagemask
-# define PAGE_SHIFT uvmexp.pageshift
#elif !defined(SUN4M) && defined(SUN4C) && !defined(SUN4)
# define CPU_ISSUN4M (0)
# define CPU_ISSUN4C (1)
@@ -292,6 +274,17 @@ extern int mmumod;
# define CPU_ISSUN4 (cputyp == CPU_SUN4)
# define CPU_ISSUN4OR4C (cputyp == CPU_SUN4 || cputyp == CPU_SUN4C)
# define CPU_ISSUN4COR4M (cputyp == CPU_SUN4C || cputyp == CPU_SUN4M)
+#endif
+
+#ifndef NBPG
+#ifdef STANDALONE /* boot blocks */
+# define NBPG nbpg
+# define PGOFSET pgofset
+# define PGSHIFT pgshift
+# define PAGE_SIZE nbpg
+# define PAGE_MASK pgofset
+# define PAGE_SHIFT pgshift
+#else
# define NBPG uvmexp.pagesize
# define PGOFSET uvmexp.pagemask
# define PGSHIFT uvmexp.pageshift
@@ -299,5 +292,6 @@ extern int mmumod;
# define PAGE_MASK uvmexp.pagemask
# define PAGE_SHIFT uvmexp.pageshift
#endif
+#endif
#endif /* _SPARC_PARAM_H_ */