From owner-svn-src-all@FreeBSD.ORG Tue Sep 17 20:33:43 2013 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 6760C83D; Tue, 17 Sep 2013 20:33:43 +0000 (UTC) (envelope-from hiren@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 54DAE2192; Tue, 17 Sep 2013 20:33:43 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id r8HKXh3t074965; Tue, 17 Sep 2013 20:33:43 GMT (envelope-from hiren@svn.freebsd.org) Received: (from hiren@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id r8HKXhuu074964; Tue, 17 Sep 2013 20:33:43 GMT (envelope-from hiren@svn.freebsd.org) Message-Id: <201309172033.r8HKXhuu074964@svn.freebsd.org> From: Hiren Panchasara Date: Tue, 17 Sep 2013 20:33:43 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r255656 - head/sys/mips/conf X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Sep 2013 20:33:43 -0000 Author: hiren Date: Tue Sep 17 20:33:42 2013 New Revision: 255656 URL: http://svnweb.freebsd.org/changeset/base/255656 Log: We have grown a bit too big lately. Shrinking the kernel for TP-Link TL-WR1043ND. Submitted by: loos (initial version) Reviewed by: adrian Approved by: sbruno (mentor, implicit) Approved by: re (delphij) Tested by: hiren Modified: head/sys/mips/conf/TP-WN1043ND Modified: head/sys/mips/conf/TP-WN1043ND ============================================================================== --- head/sys/mips/conf/TP-WN1043ND Tue Sep 17 20:25:29 2013 (r255655) +++ head/sys/mips/conf/TP-WN1043ND Tue Sep 17 20:33:42 2013 (r255656) @@ -34,12 +34,26 @@ options MSDOSFS # redboot stuff. options AR71XX_ENV_UBOOT -# uzip - to boot natively from flash -device geom_uzip -options GEOM_UZIP +# uncompress - to boot natively from flash +device geom_uncompress +options GEOM_UNCOMPRESS # Used for the static uboot partition map device geom_map # Boot off of the rootfs, as defined in the geom_map setup. -options ROOTDEVNAME=\"ufs:map/rootfs.uzip\" +options ROOTDEVNAME=\"ufs:map/rootfs.uncompress\" + +# We bite the performance overhead for now; the kernel won't +# fit if the mutexes are inlined. +options MUTEX_NOINLINE +options RWLOCK_NOINLINE +options SX_NOINLINE + +# Remove everything we don't need. We need a _really_ small kernel! +nooptions INVARIANTS +nooptions INVARIANT_SUPPORT +nooptions WITNESS +nooptions WITNESS_SKIPSPIN +nooptions DEBUG_REDZONE +nooptions DEBUG_MEMGUARD