diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 1999-12-17 01:58:47 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 1999-12-17 01:58:47 +0000 |
commit | d8add5ef378fefb5227fed9e61d8ac7d99b96cfc (patch) | |
tree | 4e56153cc25523ce66cbefc9c0c90cd01fc675f0 /sys/arch/hppa | |
parent | 96abefa42c860535db10b2ce979a2200255413ba (diff) |
define constants for PAGE_{SIZE,MASK,SHIFT}
Diffstat (limited to 'sys/arch/hppa')
-rw-r--r-- | sys/arch/hppa/include/param.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/arch/hppa/include/param.h b/sys/arch/hppa/include/param.h index d5d18a49428..2b252039214 100644 --- a/sys/arch/hppa/include/param.h +++ b/sys/arch/hppa/include/param.h @@ -1,4 +1,4 @@ -/* $OpenBSD: param.h,v 1.7 1999/10/26 16:20:43 mickey Exp $ */ +/* $OpenBSD: param.h,v 1.8 1999/12/17 01:58:46 mickey Exp $ */ /* * Copyright (c) 1988-1994, The University of Utah and @@ -44,6 +44,10 @@ #define ALIGNBYTES 7 #define ALIGN(p) (((u_long)(p) + ALIGNBYTES) &~ ALIGNBYTES) +#define PAGE_SIZE 4096 +#define PAGE_MASK (PAGE_SIZE-1) +#define PAGE_SHIFT 12 + #define NBPG 4096 /* bytes/page */ #define PGOFSET (NBPG-1) /* byte offset into page */ #define PGSHIFT 12 /* LOG2(NBPG) */ |