diff options
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/sparc/include/param.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/arch/sparc/include/param.h b/sys/arch/sparc/include/param.h index 73842375637..4d02dd0ff37 100644 --- a/sys/arch/sparc/include/param.h +++ b/sys/arch/sparc/include/param.h @@ -1,4 +1,4 @@ -/* $OpenBSD: param.h,v 1.9 1997/12/25 00:00:45 deraadt Exp $ */ +/* $OpenBSD: param.h,v 1.10 1998/08/18 05:08:50 millert Exp $ */ /* $NetBSD: param.h,v 1.29 1997/03/10 22:50:37 pk Exp $ */ /* @@ -152,6 +152,12 @@ extern int nbpg, pgofset, pgshift; #define bdbtofsb(bn) ((bn) / (BLKDEV_IOSIZE / DEV_BSIZE)) /* + * Mach derived conversion macros + */ +#define sparc_btop(x) ((unsigned)(x) >> PGSHIFT) +#define sparc_ptob(x) ((unsigned)(x) << PGSHIFT) + +/* * 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' |