allocate out of kmem_map, not buffer_map. buffer_map is for
*buffers*... hopefully this won't fragment kmem_map too much. it should probably be put into its own map, but doesn't need to be right now.
This commit is contained in:
parent
e916333aea
commit
57ee917973
@ -36,7 +36,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: kern_lkm.c,v 1.2 1993/06/07 23:10:09 cgd Exp $
|
||||
* $Id: kern_lkm.c,v 1.3 1993/07/19 09:57:22 cgd Exp $
|
||||
*/
|
||||
|
||||
#include "param.h"
|
||||
@ -129,7 +129,7 @@ lkmunreserve()
|
||||
/*
|
||||
* Actually unreserve the memory
|
||||
*/
|
||||
kmem_free( buffer_map, curp->area, curp->size);/**/
|
||||
kmem_free( kmem_map, curp->area, curp->size);/**/
|
||||
|
||||
lkm_state = LKMS_IDLE;
|
||||
}
|
||||
@ -209,7 +209,7 @@ int flag;
|
||||
*/
|
||||
curp->size = resrvp->size;
|
||||
|
||||
curp->area = (char *)kmem_alloc( buffer_map, curp->size);/**/
|
||||
curp->area = (char *)kmem_alloc( kmem_map, curp->size);/**/
|
||||
|
||||
curp->offset = 0; /* load offset*/
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user