diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1998-08-18 21:28:22 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1998-08-18 21:28:22 +0000 |
commit | ac280e4379cf99c15ae4d70d2983a4c45e7a490d (patch) | |
tree | a1c5ee38a392024b1f07f8da9c4303ba7ca0d2c2 /sys/arch/powerpc/include/param.h | |
parent | 33f984029d762ca0b8fb61018edcd21e80eba193 (diff) |
add powerpc_btop() and powerpc_ptob() macros for consistency with other ports
Diffstat (limited to 'sys/arch/powerpc/include/param.h')
-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 |