diff options
author | marcel <marcel@FreeBSD.org> | 2003-08-23 03:39:55 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 2003-08-23 03:39:55 +0000 |
commit | 0a0d516cca2efbe3ac2a5a178e9b0506265ebccf (patch) | |
tree | 04dc4c5a7be5fc7e60727ce34e973a1cfc734f29 | |
parent | e353031056b1fd3271b4cfcf8ded8acbb853095f (diff) | |
download | FreeBSD-src-0a0d516cca2efbe3ac2a5a178e9b0506265ebccf.zip FreeBSD-src-0a0d516cca2efbe3ac2a5a178e9b0506265ebccf.tar.gz |
Remove PAGE_SIZE_4K, PAGE_SIZE_8K and PAGE_SIZE_16K and replace them
with LOG2_PAGE_SIZE. A single option is better to LINT than multiple
mutual exclusive ones.
-rw-r--r-- | sys/ia64/include/param.h | 20 |
1 files changed, 4 insertions, 16 deletions
diff --git a/sys/ia64/include/param.h b/sys/ia64/include/param.h index c0d18a4..1d86956 100644 --- a/sys/ia64/include/param.h +++ b/sys/ia64/include/param.h @@ -107,23 +107,11 @@ #define ALIGN(p) _ALIGN(p) #define ALIGNED_POINTER(p,t) _ALIGNED_POINTER(p,t) -#if !defined(PAGE_SIZE_4K) && !defined(PAGE_SIZE_8K) && !defined(PAGE_SIZE_16K) -#define PAGE_SIZE_8K +#ifndef LOG2_PAGE_SIZE +#define LOG2_PAGE_SIZE 13 /* 8K pages by default. */ #endif - -#ifdef PAGE_SIZE_4K -#define PAGE_SIZE 4096 /* bytes/page */ -#define PAGE_SHIFT 12 -#endif -#ifdef PAGE_SIZE_8K -#define PAGE_SIZE 8192 /* bytes/page */ -#define PAGE_SHIFT 13 -#endif -#ifdef PAGE_SIZE_16K -#define PAGE_SIZE 16384 /* bytes/page */ -#define PAGE_SHIFT 14 -#endif - +#define PAGE_SHIFT (LOG2_PAGE_SIZE) +#define PAGE_SIZE (1<<(LOG2_PAGE_SIZE)) #define PAGE_MASK (PAGE_SIZE-1) #define NPTEPG (PAGE_SIZE/(sizeof (pt_entry_t))) |