diff options
author | bmilekic <bmilekic@FreeBSD.org> | 2002-06-13 23:53:42 +0000 |
---|---|---|
committer | bmilekic <bmilekic@FreeBSD.org> | 2002-06-13 23:53:42 +0000 |
commit | 86f2253b6ace633ee748c4045c980d65887addbd (patch) | |
tree | b0c95ccdfee03fbefa45130e6fd41e79fe9ba993 | |
parent | c281a7f80e76fd5e3261452019f327acbe55e237 (diff) | |
download | FreeBSD-src-86f2253b6ace633ee748c4045c980d65887addbd.zip FreeBSD-src-86f2253b6ace633ee748c4045c980d65887addbd.tar.gz |
Set system_map for both mbuf_map and clust_map to 1, in mbuf_init().
Submitted by: Tor Egge (tegge)
Pointed out to me by: hsu
-rw-r--r-- | sys/kern/subr_mbuf.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/kern/subr_mbuf.c b/sys/kern/subr_mbuf.c index ad76677..19ead8d 100644 --- a/sys/kern/subr_mbuf.c +++ b/sys/kern/subr_mbuf.c @@ -45,6 +45,8 @@ #include <vm/vm.h> #include <vm/vm_kern.h> #include <vm/vm_extern.h> +#include <vm/pmap.h> +#include <vm/vm_map.h> /* * Maximum number of PCPU containers. If you know what you're doing you could @@ -335,6 +337,7 @@ mbuf_init(void *dummy) goto bad; mb_list_mbuf.ml_map = kmem_suballoc(kmem_map,&(mb_list_mbuf.ml_mapbase), &(mb_list_mbuf.ml_maptop), mb_map_size); + mb_list_mbuf.ml_map->system_map = 1; mb_list_mbuf.ml_mapfull = 0; mb_list_mbuf.ml_objsize = MSIZE; mb_list_mbuf.ml_wmhigh = &mbuf_limit; @@ -348,12 +351,11 @@ mbuf_init(void *dummy) mb_list_clust.ml_map = kmem_suballoc(kmem_map, &(mb_list_clust.ml_mapbase), &(mb_list_clust.ml_maptop), mb_map_size); + mb_list_clust.ml_map->system_map = 1; mb_list_clust.ml_mapfull = 0; mb_list_clust.ml_objsize = MCLBYTES; mb_list_clust.ml_wmhigh = &clust_limit; - /* XXX XXX XXX: mbuf_map->system_map = clust_map->system_map = 1. */ - /* * Allocate required general (global) containers for each object type. */ |