diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1998-08-18 05:08:51 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1998-08-18 05:08:51 +0000 |
commit | b102e9a04ccac72484afbbd575c05ded4a5760ff (patch) | |
tree | 11585899d9042fd4034e7456cce8214d746b0d86 /sys | |
parent | 88ece530dfbd0b515ade0c5d7f06479642fec1e5 (diff) |
Add sparc_btop and sparc_ptob for consistency with other ports
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' |