From owner-p4-projects@FreeBSD.ORG Sat Feb 4 19:17:03 2006 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 29D8B16A423; Sat, 4 Feb 2006 19:17:03 +0000 (GMT) X-Original-To: perforce@freebsd.org Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E13CD16A422 for ; Sat, 4 Feb 2006 19:17:02 +0000 (GMT) (envelope-from alc@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 40F1B43D5F for ; Sat, 4 Feb 2006 19:16:52 +0000 (GMT) (envelope-from alc@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id k14JGnn7040382 for ; Sat, 4 Feb 2006 19:16:49 GMT (envelope-from alc@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id k14JGnwr040379 for perforce@freebsd.org; Sat, 4 Feb 2006 19:16:49 GMT (envelope-from alc@freebsd.org) Date: Sat, 4 Feb 2006 19:16:49 GMT Message-Id: <200602041916.k14JGnwr040379@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to alc@freebsd.org using -f From: Alan Cox To: Perforce Change Reviews Cc: Subject: PERFORCE change 91095 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Feb 2006 19:17:04 -0000 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