Deleted Added
full compact
vmparam.h (271213) vmparam.h (276439)
1/* $OpenBSD: vmparam.h,v 1.2 1998/09/15 10:50:12 pefo Exp $ */
2/* $NetBSD: vmparam.h,v 1.5 1994/10/26 21:10:10 cgd 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 *

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

32 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
33 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
34 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
35 * SUCH DAMAGE.
36 *
37 * from: Utah Hdr: vmparam.h 1.16 91/01/18
38 * @(#)vmparam.h 8.2 (Berkeley) 4/22/94
39 * JNPR: vmparam.h,v 1.3.2.1 2007/09/10 06:01:28 girish
1/* $OpenBSD: vmparam.h,v 1.2 1998/09/15 10:50:12 pefo Exp $ */
2/* $NetBSD: vmparam.h,v 1.5 1994/10/26 21:10:10 cgd 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 *

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

32 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
33 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
34 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
35 * SUCH DAMAGE.
36 *
37 * from: Utah Hdr: vmparam.h 1.16 91/01/18
38 * @(#)vmparam.h 8.2 (Berkeley) 4/22/94
39 * JNPR: vmparam.h,v 1.3.2.1 2007/09/10 06:01:28 girish
40 * $FreeBSD: head/sys/mips/include/vmparam.h 271213 2014-09-06 22:38:32Z adrian $
40 * $FreeBSD: head/sys/mips/include/vmparam.h 276439 2014-12-31 00:54:38Z alc $
41 */
42
43#ifndef _MACHINE_VMPARAM_H_
44#define _MACHINE_VMPARAM_H_
45
46/*
47 * Machine dependent constants mips processors.
48 */

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

155 * allocated.
156 */
157#define VM_NFREEPOOL 3
158#define VM_FREEPOOL_CACHE 2
159#define VM_FREEPOOL_DEFAULT 0
160#define VM_FREEPOOL_DIRECT 1
161
162/*
41 */
42
43#ifndef _MACHINE_VMPARAM_H_
44#define _MACHINE_VMPARAM_H_
45
46/*
47 * Machine dependent constants mips processors.
48 */

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

155 * allocated.
156 */
157#define VM_NFREEPOOL 3
158#define VM_FREEPOOL_CACHE 2
159#define VM_FREEPOOL_DEFAULT 0
160#define VM_FREEPOOL_DIRECT 1
161
162/*
163 * we support 2 free lists:
164 *
165 * - DEFAULT for direct mapped (KSEG0) pages.
166 * Note: This usage of DEFAULT may be misleading because we use
167 * DEFAULT for allocating direct mapped pages. The normal page
168 * allocations use HIGHMEM if available, and then DEFAULT.
169 * - HIGHMEM for other pages
163 * Create up to two free lists on !__mips_n64: VM_FREELIST_DEFAULT is for
164 * physical pages that are above the largest physical address that is
165 * accessible through the direct map (KSEG0) and VM_FREELIST_LOWMEM is for
166 * physical pages that are below that address. VM_LOWMEM_BOUNDARY is the
167 * physical address for the end of the direct map (KSEG0).
170 */
171#ifdef __mips_n64
172#define VM_NFREELIST 1
173#define VM_FREELIST_DEFAULT 0
174#define VM_FREELIST_DIRECT VM_FREELIST_DEFAULT
175#else
176#define VM_NFREELIST 2
168 */
169#ifdef __mips_n64
170#define VM_NFREELIST 1
171#define VM_FREELIST_DEFAULT 0
172#define VM_FREELIST_DIRECT VM_FREELIST_DEFAULT
173#else
174#define VM_NFREELIST 2
177#define VM_FREELIST_DEFAULT 1
178#define VM_FREELIST_HIGHMEM 0
179#define VM_FREELIST_DIRECT VM_FREELIST_DEFAULT
180#define VM_HIGHMEM_ADDRESS ((vm_paddr_t)0x20000000)
175#define VM_FREELIST_DEFAULT 0
176#define VM_FREELIST_LOWMEM 1
177#define VM_FREELIST_DIRECT VM_FREELIST_LOWMEM
178#define VM_LOWMEM_BOUNDARY ((vm_paddr_t)0x20000000)
181#endif
182
183/*
184 * The largest allocation size is 1MB.
185 */
186#define VM_NFREEORDER 9
187
188#define ZERO_REGION_SIZE (64 * 1024) /* 64KB */
189
190#ifndef __mips_n64
191#define SFBUF
192#define SFBUF_MAP
193#endif
194
195#endif /* !_MACHINE_VMPARAM_H_ */
179#endif
180
181/*
182 * The largest allocation size is 1MB.
183 */
184#define VM_NFREEORDER 9
185
186#define ZERO_REGION_SIZE (64 * 1024) /* 64KB */
187
188#ifndef __mips_n64
189#define SFBUF
190#define SFBUF_MAP
191#endif
192
193#endif /* !_MACHINE_VMPARAM_H_ */