get rid of an "#if 0", and allocate buffers here.

This commit is contained in:
cgd 1993-09-29 04:51:12 +00:00
parent 1d0f22a29a
commit ff24138e60
1 changed files with 3 additions and 9 deletions

View File

@ -240,7 +240,7 @@ again:
*/
if ((vm_size_t)(v - firstaddr) != size)
panic("startup: table size inconsistency");
#if 0
/*
* Now allocate buffers proper. They are different than the above
* in that they usually occupy more virtual memory than physical.
@ -254,7 +254,8 @@ again:
panic("startup: cannot allocate buffers");
base = bufpages / nbuf;
residual = bufpages % nbuf;
if (base >= MAXBSIZE) { /* don't want to alloc more physical mem than needed */
if (base >= MAXBSIZE) {
/* don't want to alloc more physical mem than needed */
base = MAXBSIZE;
residual = 0;
}
@ -274,13 +275,6 @@ again:
vm_map_pageable(buffer_map, curbuf, curbuf+curbufsize, FALSE);
vm_map_simplify(buffer_map, curbuf);
}
#else
/*
* Allocate a submap for buffer space allocations.
*/
buffer_map = kmem_suballoc(kernel_map, &minaddr, &maxaddr,
bufpages * CLBYTES, TRUE);
#endif
/*
* Allocate a submap for exec arguments. This map effectively