Date: Sat, 4 Feb 2006 19:16:49 GMT From: Alan Cox <alc@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 91095 for review Message-ID: <200602041916.k14JGnwr040379@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=91095 Change 91095 by alc@alc_home on 2006/02/04 19:16:37 Enable the use of superpages within the kmem object. Affected files ... .. //depot/projects/superpages/src/sys/vm/vm_object.c#10 edit Differences ... ==== //depot/projects/superpages/src/sys/vm/vm_object.c#10 (text+ko) ==== @@ -236,6 +236,8 @@ VM_OBJECT_LOCK_INIT(&kmem_object_store, "kmem object"); _vm_object_allocate(OBJT_DEFAULT, OFF_TO_IDX(VM_MAX_KERNEL_ADDRESS - VM_MIN_KERNEL_ADDRESS), kmem_object); + kmem_object->pg_color = (u_short)atop(VM_MIN_KERNEL_ADDRESS); + vm_object_set_flag(kmem_object, OBJ_SUPERPAGES); /* * The lock portion of struct vm_object must be type stable due
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200602041916.k14JGnwr040379>