summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorart <art@openbsd.org>1999-11-25 08:46:44 +0000
committerart <art@openbsd.org>1999-11-25 08:46:44 +0000
commitcbb466c68b50fd5637b8c68aa72355490e322c57 (patch)
tree37abc889e3014b7a6ba6539aa5999adbe43527fb
parentUpdate comments to reflect reality. (diff)
downloadwireguard-openbsd-cbb466c68b50fd5637b8c68aa72355490e322c57.tar.xz
wireguard-openbsd-cbb466c68b50fd5637b8c68aa72355490e322c57.zip
In the cases where we are sure what page size we have, define PAGE_SIZE
(and friends).
-rw-r--r--sys/arch/sparc/include/param.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/sys/arch/sparc/include/param.h b/sys/arch/sparc/include/param.h
index 756be97264b..84812a39f86 100644
--- a/sys/arch/sparc/include/param.h
+++ b/sys/arch/sparc/include/param.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: param.h,v 1.11 1999/07/09 21:33:37 art Exp $ */
+/* $OpenBSD: param.h,v 1.12 1999/11/25 08:46:44 art Exp $ */
/* $NetBSD: param.h,v 1.29 1997/03/10 22:50:37 pk Exp $ */
/*
@@ -233,6 +233,9 @@ extern int mmumod;
# define NBPG 4096
# define PGOFSET (NBPG-1)
# define PGSHIFT SUN4CM_PGSHIFT
+# define PAGE_SIZE 4096
+# define PAGE_MASK (PAGE_SIZE - 1)
+# define PAGE_SHIFT SUN4CM_PGSHIFT
#elif defined(SUN4M) && !defined(SUN4C) && defined(SUN4)
# define CPU_ISSUN4M (cputyp == CPU_SUN4M)
# define CPU_ISSUN4C (0)
@@ -251,6 +254,9 @@ extern int mmumod;
# define NBPG 4096
# define PGOFSET (NBPG-1)
# define PGSHIFT SUN4CM_PGSHIFT
+# define PAGE_SIZE 4096
+# define PAGE_MASK (PAGE_SIZE - 1)
+# define PAGE_SHIFT SUN4CM_PGSHIFT
#elif !defined(SUN4M) && defined(SUN4C) && defined(SUN4)
# define CPU_ISSUN4M (0)
# define CPU_ISSUN4C (cputyp == CPU_SUN4C)
@@ -269,6 +275,9 @@ extern int mmumod;
# define NBPG 4096
# define PGOFSET (NBPG-1)
# define PGSHIFT SUN4CM_PGSHIFT
+# define PAGE_SIZE 4096
+# define PAGE_MASK (PAGE_SIZE - 1)
+# define PAGE_SHIFT SUN4CM_PGSHIFT
#elif !defined(SUN4M) && !defined(SUN4C) && defined(SUN4)
# define CPU_ISSUN4M (0)
# define CPU_ISSUN4C (0)
@@ -278,6 +287,9 @@ extern int mmumod;
# define NBPG 8192
# define PGOFSET (NBPG-1)
# define PGSHIFT SUN4_PGSHIFT
+# define PAGE_SIZE 8192
+# define PAGE_MASK (PAGE_SIZE - 1)
+# define PAGE_SHIFT SUN4_PGSHIFT
#elif !defined(SUN4M) && !defined(SUN4C) && !defined(SUN4)
# define CPU_ISSUN4M (cputyp == CPU_SUN4M)
# define CPU_ISSUN4C (cputyp == CPU_SUN4C)