Use virtual_avail and virtual_end to compute the size of the available

kernel VM space for VM_MAX_KERNEL_BUF, and move the definition into
generic ARM code.
This commit is contained in:
thorpej 2003-05-22 05:25:48 +00:00
parent eb44a81d7f
commit 1963a8521c
7 changed files with 16 additions and 43 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: vmparam.h,v 1.16 2003/05/21 22:48:21 thorpej Exp $ */
/* $NetBSD: vmparam.h,v 1.17 2003/05/22 05:25:48 thorpej Exp $ */
/*
* Copyright (c) 1988 The Regents of the University of California.
@ -76,12 +76,6 @@
#define USRIOSIZE 300
/* XXX max. amount of KVM to be used by buffers. */
#ifndef VM_MAX_KERNEL_BUF
#define VM_MAX_KERNEL_BUF \
((KERNEL_VM_SIZE) * 4 / 10)
#endif
/* virtual sizes (bytes) for various kernel submaps */
#define VM_PHYS_SIZE (USRIOSIZE*PAGE_SIZE)

View File

@ -1,4 +1,4 @@
/* $NetBSD: vmparam.h,v 1.18 2003/05/21 18:04:44 thorpej Exp $ */
/* $NetBSD: vmparam.h,v 1.19 2003/05/22 05:25:48 thorpej Exp $ */
/*
* Copyright (c) 2001, 2002 Wasabi Systems, Inc.
@ -92,6 +92,15 @@
#define VM_MIN_KERNEL_ADDRESS ((vaddr_t) KERNEL_BASE)
#define VM_MAX_KERNEL_ADDRESS ((vaddr_t) 0xffffffff)
/* XXX max. amount of KVM to be used by buffers. */
#ifndef VM_MAX_KERNEL_BUF
extern vaddr_t virtual_avail;
extern vaddr_t virtual_end;
#define VM_MAX_KERNEL_BUF \
((virtual_end - virtual_avail) * 4 / 10)
#endif
/*
* pmap-specific data store in the vm_page structure.
*/

View File

@ -1,4 +1,4 @@
/* $NetBSD: vmparam.h,v 1.21 2003/05/21 22:48:21 thorpej Exp $ */
/* $NetBSD: vmparam.h,v 1.22 2003/05/22 05:25:49 thorpej Exp $ */
/*
* Copyright (c) 1988 The Regents of the University of California.
@ -81,12 +81,6 @@
#define USRIOSIZE 300
/* XXX max. amount of KVM to be used by buffers. */
#ifndef VM_MAX_KERNEL_BUF
#define VM_MAX_KERNEL_BUF \
(((KERNEL_VM_SIZE) * 4) / 10)
#endif
/* virtual sizes (bytes) for various kernel submaps */
#define VM_PHYS_SIZE (USRIOSIZE*PAGE_SIZE)

View File

@ -1,4 +1,4 @@
/* $NetBSD: vmparam.h,v 1.19 2003/05/21 22:48:21 thorpej Exp $ */
/* $NetBSD: vmparam.h,v 1.20 2003/05/22 05:25:49 thorpej Exp $ */
/*
* Copyright (c) 1988 The Regents of the University of California.
@ -76,12 +76,6 @@
#define USRIOSIZE 300
/* XXX max. amount of KVM to be used by buffers. */
#ifndef VM_MAX_KERNEL_BUF
#define VM_MAX_KERNEL_BUF \
((KERNEL_VM_SIZE) * 4 / 10)
#endif
/* virtual sizes (bytes) for various kernel submaps */
#define VM_PHYS_SIZE (USRIOSIZE*PAGE_SIZE)

View File

@ -1,4 +1,4 @@
/* $NetBSD: vmparam.h,v 1.23 2003/05/21 22:48:23 thorpej Exp $ */
/* $NetBSD: vmparam.h,v 1.24 2003/05/22 05:25:50 thorpej Exp $ */
/*
* Copyright (c) 1988 The Regents of the University of California.
@ -72,12 +72,6 @@
#define USRIOSIZE 300
/* XXX max. amount of KVM to be used by buffers. */
#ifndef VM_MAX_KERNEL_BUF
#define VM_MAX_KERNEL_BUF \
((KERNEL_VM_SIZE) * 4 / 10)
#endif
/* virtual sizes (bytes) for various kernel submaps */
#define VM_PHYS_SIZE (USRIOSIZE*PAGE_SIZE)

View File

@ -1,4 +1,4 @@
/* $NetBSD: vmparam.h,v 1.19 2003/05/21 22:48:23 thorpej Exp $ */
/* $NetBSD: vmparam.h,v 1.20 2003/05/22 05:25:50 thorpej Exp $ */
/*
* Copyright (c) 1988 The Regents of the University of California.
@ -76,12 +76,6 @@
#define USRIOSIZE 300
/* XXX max. amount of KVM to be used by buffers. */
#ifndef VM_MAX_KERNEL_BUF
#define VM_MAX_KERNEL_BUF \
((KERNEL_VM_SIZE) * 4 / 10)
#endif
/* virtual sizes (bytes) for various kernel submaps */
#define VM_PHYS_SIZE (USRIOSIZE*PAGE_SIZE)

View File

@ -1,4 +1,4 @@
/* $NetBSD: vmparam.h,v 1.11 2003/05/21 22:48:24 thorpej Exp $ */
/* $NetBSD: vmparam.h,v 1.12 2003/05/22 05:25:51 thorpej Exp $ */
/*
* Copyright (c) 1988 The Regents of the University of California.
@ -67,12 +67,6 @@
#define USRIOSIZE 300
/* XXX max. amount of KVM to be used by buffers. */
#ifndef VM_MAX_KERNEL_BUF
#define VM_MAX_KERNEL_BUF \
((KERNEL_VM_SIZE) * 4 / 10)
#endif
/* virtual sizes (bytes) for various kernel submaps */
#define VM_PHYS_SIZE (USRIOSIZE*PAGE_SIZE)