PERFORCE change 91095 for review
Alan Cox
alc at FreeBSD.org
Sat Feb 4 11:17:04 PST 2006
http://perforce.freebsd.org/chv.cgi?CH=91095
Change 91095 by alc at 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
More information about the p4-projects
mailing list