diff options
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/powerpc/include/param.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/arch/powerpc/include/param.h b/sys/arch/powerpc/include/param.h index f2d64876315..d6c79a2a243 100644 --- a/sys/arch/powerpc/include/param.h +++ b/sys/arch/powerpc/include/param.h @@ -1,4 +1,4 @@ -/* $OpenBSD: param.h,v 1.6 1997/10/14 17:11:11 pefo Exp $ */ +/* $OpenBSD: param.h,v 1.7 1998/08/18 21:28:21 millert Exp $ */ /* $NetBSD: param.h,v 1.1 1996/09/30 16:34:28 ws Exp $ */ /*- @@ -113,6 +113,12 @@ #define btodb(x) ((x) >> DEV_BSHIFT) /* + * Mach derived conversion macros + */ +#define powerpc_btop(x) ((unsigned)(x) >> PGSHIFT) +#define powerpc_ptob(x) ((unsigned)(x) << PGSHIFT) + +/* * Segment handling stuff */ #define SEGMENT_LENGTH 0x10000000 |