cpu_machdep.c (15722) | cpu_machdep.c (15809) |
---|---|
1/*- 2 * Copyright (c) 1992 Terrence R. Lambert. 3 * Copyright (c) 1982, 1987, 1990 The Regents of the University of California. 4 * All rights reserved. 5 * 6 * This code is derived from software contributed to Berkeley by 7 * William Jolitz. 8 * --- 21 unchanged lines hidden (view full) --- 30 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 31 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 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: @(#)machdep.c 7.4 (Berkeley) 6/3/91 | 1/*- 2 * Copyright (c) 1992 Terrence R. Lambert. 3 * Copyright (c) 1982, 1987, 1990 The Regents of the University of California. 4 * All rights reserved. 5 * 6 * This code is derived from software contributed to Berkeley by 7 * William Jolitz. 8 * --- 21 unchanged lines hidden (view full) --- 30 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 31 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 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: @(#)machdep.c 7.4 (Berkeley) 6/3/91 |
38 * $Id: machdep.c,v 1.189 1996/05/03 21:00:53 phk Exp $ | 38 * $Id: machdep.c,v 1.190 1996/05/10 19:28:44 wollman Exp $ |
39 */ 40 41#include "npx.h" 42#include "isa.h" 43#include "opt_sysvipc.h" 44#include "opt_ddb.h" 45#include "opt_bounce.h" 46#include "opt_machdep.h" --- 326 unchanged lines hidden (view full) --- 373 (nbuf*MAXBSIZE) + (nswbuf*MAXPHYS) + pager_map_size, TRUE); 374#endif 375 buffer_map = kmem_suballoc(clean_map, &buffer_sva, &buffer_eva, 376 (nbuf*MAXBSIZE), TRUE); 377 pager_map = kmem_suballoc(clean_map, &pager_sva, &pager_eva, 378 (nswbuf*MAXPHYS) + pager_map_size, TRUE); 379 exec_map = kmem_suballoc(kernel_map, &minaddr, &maxaddr, 380 (16*ARG_MAX), TRUE); | 39 */ 40 41#include "npx.h" 42#include "isa.h" 43#include "opt_sysvipc.h" 44#include "opt_ddb.h" 45#include "opt_bounce.h" 46#include "opt_machdep.h" --- 326 unchanged lines hidden (view full) --- 373 (nbuf*MAXBSIZE) + (nswbuf*MAXPHYS) + pager_map_size, TRUE); 374#endif 375 buffer_map = kmem_suballoc(clean_map, &buffer_sva, &buffer_eva, 376 (nbuf*MAXBSIZE), TRUE); 377 pager_map = kmem_suballoc(clean_map, &pager_sva, &pager_eva, 378 (nswbuf*MAXPHYS) + pager_map_size, TRUE); 379 exec_map = kmem_suballoc(kernel_map, &minaddr, &maxaddr, 380 (16*ARG_MAX), TRUE); |
381 exech_map = kmem_suballoc(kernel_map, &minaddr, &maxaddr, 382 (32*ARG_MAX), TRUE); |
|
381 u_map = kmem_suballoc(kernel_map, &minaddr, &maxaddr, 382 (maxproc*UPAGES*PAGE_SIZE), FALSE); 383 384 /* 385 * Finally, allocate mbuf pool. Since mclrefcnt is an off-size 386 * we use the more space efficient malloc in place of kmem_alloc. 387 */ 388 mclrefcnt = (char *)malloc(nmbclusters+PAGE_SIZE/MCLBYTES, --- 1450 unchanged lines hidden --- | 383 u_map = kmem_suballoc(kernel_map, &minaddr, &maxaddr, 384 (maxproc*UPAGES*PAGE_SIZE), FALSE); 385 386 /* 387 * Finally, allocate mbuf pool. Since mclrefcnt is an off-size 388 * we use the more space efficient malloc in place of kmem_alloc. 389 */ 390 mclrefcnt = (char *)malloc(nmbclusters+PAGE_SIZE/MCLBYTES, --- 1450 unchanged lines hidden --- |