diff options
author | 2000-11-19 01:11:29 +0000 | |
---|---|---|
committer | 2000-11-19 01:11:29 +0000 | |
commit | 285ec42b607733668c7cc05543b75ab5f3c7917c (patch) | |
tree | d29bdade1b8fbf43f9d767d56d14cb61e0b36c92 | |
parent | More sane setting of page size. (diff) | |
download | wireguard-openbsd-285ec42b607733668c7cc05543b75ab5f3c7917c.tar.xz wireguard-openbsd-285ec42b607733668c7cc05543b75ab5f3c7917c.zip |
PAGE_SIZE (and friends) does not change on alpha.
Make it a constant.
-rw-r--r-- | sys/arch/alpha/include/param.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/arch/alpha/include/param.h b/sys/arch/alpha/include/param.h index 5bd73b71441..228ebc25678 100644 --- a/sys/arch/alpha/include/param.h +++ b/sys/arch/alpha/include/param.h @@ -1,4 +1,4 @@ -/* $OpenBSD: param.h,v 1.14 2000/11/08 21:27:21 ericj Exp $ */ +/* $OpenBSD: param.h,v 1.15 2000/11/19 01:11:29 art Exp $ */ /* $NetBSD: param.h,v 1.30 2000/06/09 16:03:04 thorpej Exp $ */ /* @@ -74,6 +74,10 @@ #define PGOFSET (NBPG-1) /* byte off. into pg */ #define PGSHIFT ALPHA_PGSHIFT /* LOG2(NBPG) */ +#define PAGE_SHIFT 12 +#define PAGE_SIZE (1 << PAGE_SHIFT) +#define PAGE_MASK (PAGE_SIZE - 1) + #define KERNBASE 0xfffffc0000230000 /* start of kernel virtual */ #define BTOPKERNBASE ((u_long)KERNBASE >> PGSHIFT) |