From f957e47fe35595d4ca2a96b871e3638f82598cb4 Mon Sep 17 00:00:00 2001 From: phk Date: Tue, 14 May 2002 20:35:29 +0000 Subject: Move MI stuff out of MD param.h files. It can all still be overridden in the MD files should need suddenly arise. --- sys/alpha/include/param.h | 38 -------------------------------------- 1 file changed, 38 deletions(-) (limited to 'sys/alpha') diff --git a/sys/alpha/include/param.h b/sys/alpha/include/param.h index f32b749..444b8b7 100644 --- a/sys/alpha/include/param.h +++ b/sys/alpha/include/param.h @@ -116,16 +116,6 @@ #define KERNBASE 0xfffffc0000300000LL /* start of kernel virtual */ #define BTOPKERNBASE ((u_long)KERNBASE >> PGSHIFT) -#define DEV_BSHIFT 9 /* log2(DEV_BSIZE) */ -#define DEV_BSIZE (1<> PAGE_SHIFT) - -/* - * btodb() is messy and perhaps slow because `bytes' may be an off_t. We - * want to shift an unsigned type to avoid sign extension and we don't - * want to widen `bytes' unnecessarily. Assume that the result fits in - * a daddr_t. - */ -#define btodb(bytes) /* calculates (bytes / DEV_BSIZE) */ \ - (daddr_t)((unsigned long)(bytes) >> DEV_BSHIFT) -#define dbtob(db) /* calculates (db * DEV_BSIZE) */ \ - ((off_t)(db) << DEV_BSHIFT) - -/* * Mach derived conversion macros */ #define round_page(x) ((((unsigned long)(x)) + PAGE_MASK) & ~(PAGE_MASK)) -- cgit v1.1