From 33f984029d762ca0b8fb61018edcd21e80eba193 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Tue, 18 Aug 1998 21:18:48 +0000 Subject: add mvme88k_btop() and mvme88k_ptob() macros for consistency with other ports --- sys/arch/mvme88k/include/param.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'sys/arch/mvme88k/include') 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 #ifdef _KERNEL -- cgit v1.2.3