diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1998-08-18 21:18:48 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1998-08-18 21:18:48 +0000 |
commit | 33f984029d762ca0b8fb61018edcd21e80eba193 (patch) | |
tree | e2ed5a5bcaefbc69cdf1d956af5ac7d74275150c /sys/arch/mvme88k/include | |
parent | 833142cf7f1d0860ddbbbbe3d972983600e74940 (diff) |
add mvme88k_btop() and mvme88k_ptob() macros for consistency with other ports
Diffstat (limited to 'sys/arch/mvme88k/include')
-rw-r--r-- | sys/arch/mvme88k/include/param.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/sys/arch/mvme88k/include/param.h b/sys/arch/mvme88k/include/param.h index f5ef4835d9b..117b441ba31 100644 --- a/sys/arch/mvme88k/include/param.h +++ b/sys/arch/mvme88k/include/param.h @@ -38,7 +38,7 @@ * from: Utah $Hdr: machparam.h 1.11 89/08/14$ * * @(#)param.h 7.8 (Berkeley) 6/28/91 - * $Id: param.h,v 1.5 1997/03/03 20:21:06 rahnds Exp $ + * $Id: param.h,v 1.6 1998/08/18 21:18:47 millert Exp $ */ #ifndef _MACHINE_PARAM_H_ #define _MACHINE_PARAM_H_ @@ -150,6 +150,13 @@ * For now though just use DEV_BSIZE. */ #define bdbtofsb(bn) ((bn) / (BLKDEV_IOSIZE/DEV_BSIZE)) + +/* + * Mach derived conversion macros + */ +#define mvme88k_btop(x) ((unsigned)(x) >> PGSHIFT) +#define mvme88k_ptob(x) ((unsigned)(x) << PGSHIFT) + #include <machine/psl.h> #ifdef _KERNEL |