Deleted Added
full compact
param.h (74733) param.h (83198)
1/* $FreeBSD: head/sys/ia64/include/param.h 74733 2001-03-24 06:22:57Z jhb $ */
1/* $FreeBSD: head/sys/ia64/include/param.h 83198 2001-09-07 11:03:39Z dfr $ */
2/* From: NetBSD: param.h,v 1.20 1997/09/19 13:52:53 leo Exp */
3
4/*
5 * Copyright (c) 1988 University of Utah.
6 * Copyright (c) 1992, 1993
7 * The Regents of the University of California. All rights reserved.
8 *
9 * This code is derived from software contributed to Berkeley by

--- 97 unchanged lines hidden (view full) ---

107 * This does not reflect the optimal alignment, just the possibility
108 * (within reasonable limits).
109 *
110 */
111#define ALIGNBYTES _ALIGNBYTES
112#define ALIGN(p) _ALIGN(p)
113#define ALIGNED_POINTER(p,t) _ALIGNED_POINTER(p,t)
114
2/* From: NetBSD: param.h,v 1.20 1997/09/19 13:52:53 leo Exp */
3
4/*
5 * Copyright (c) 1988 University of Utah.
6 * Copyright (c) 1992, 1993
7 * The Regents of the University of California. All rights reserved.
8 *
9 * This code is derived from software contributed to Berkeley by

--- 97 unchanged lines hidden (view full) ---

107 * This does not reflect the optimal alignment, just the possibility
108 * (within reasonable limits).
109 *
110 */
111#define ALIGNBYTES _ALIGNBYTES
112#define ALIGN(p) _ALIGN(p)
113#define ALIGNED_POINTER(p,t) _ALIGNED_POINTER(p,t)
114
115#if !defined(PAGE_SIZE_4K) && !defined(PAGE_SIZE_8K) && !defined(PAGE_SIZE_16K)
116#define PAGE_SIZE_8K
117#endif
118
119#ifdef PAGE_SIZE_4K
115#define PAGE_SIZE 4096 /* bytes/page */
116#define PAGE_SHIFT 12
120#define PAGE_SIZE 4096 /* bytes/page */
121#define PAGE_SHIFT 12
122#endif
123#ifdef PAGE_SIZE_8K
124#define PAGE_SIZE 8192 /* bytes/page */
125#define PAGE_SHIFT 13
126#endif
127#ifdef PAGE_SIZE_16K
128#define PAGE_SIZE 16384 /* bytes/page */
129#define PAGE_SHIFT 14
130#endif
131
117#define PAGE_MASK (PAGE_SIZE-1)
118#define NPTEPG (PAGE_SIZE/(sizeof (pt_entry_t)))
119
120#define KERNBASE 0xfffffc0000300000LL /* start of kernel virtual */
121#define BTOPKERNBASE ((u_long)KERNBASE >> PGSHIFT)
122
123#define DEV_BSHIFT 9 /* log2(DEV_BSIZE) */
124#define DEV_BSIZE (1<<DEV_BSHIFT)

--- 63 unchanged lines hidden ---
132#define PAGE_MASK (PAGE_SIZE-1)
133#define NPTEPG (PAGE_SIZE/(sizeof (pt_entry_t)))
134
135#define KERNBASE 0xfffffc0000300000LL /* start of kernel virtual */
136#define BTOPKERNBASE ((u_long)KERNBASE >> PGSHIFT)
137
138#define DEV_BSHIFT 9 /* log2(DEV_BSIZE) */
139#define DEV_BSIZE (1<<DEV_BSHIFT)

--- 63 unchanged lines hidden ---