From owner-freebsd-current@FreeBSD.ORG Tue Mar 8 17:39:12 2011 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 013531065670 for ; Tue, 8 Mar 2011 17:39:12 +0000 (UTC) (envelope-from rdivacky@vlk.vlakno.cz) Received: from vlakno.cz (lev.vlakno.cz [77.93.215.190]) by mx1.freebsd.org (Postfix) with ESMTP id A93798FC16 for ; Tue, 8 Mar 2011 17:39:11 +0000 (UTC) Received: from lev.vlakno.cz (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id 8EAD99CB118 for ; Tue, 8 Mar 2011 18:39:09 +0100 (CET) X-Virus-Scanned: amavisd-new at vlakno.cz Received: from vlakno.cz ([127.0.0.1]) by lev.vlakno.cz (lev.vlakno.cz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id XWJKWedq0PQp for ; Tue, 8 Mar 2011 18:39:09 +0100 (CET) Received: from vlk.vlakno.cz (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id 0E6AE9CB22A for ; Tue, 8 Mar 2011 18:39:09 +0100 (CET) Received: (from rdivacky@localhost) by vlk.vlakno.cz (8.14.4/8.14.4/Submit) id p28Hd9w2071909 for current@freebsd.org; Tue, 8 Mar 2011 18:39:09 +0100 (CET) (envelope-from rdivacky) Date: Tue, 8 Mar 2011 18:39:09 +0100 From: Roman Divacky To: current@freebsd.org Message-ID: <20110308173909.GA71091@freebsd.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="qDbXVdCdHGoSgWSk" Content-Disposition: inline User-Agent: Mutt/1.4.2.3i Cc: Subject: [TESTING]: one more boot2 shrinking patch X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Mar 2011 17:39:12 -0000 --qDbXVdCdHGoSgWSk Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable hi, this diet patch=20 http://lev.vlakno.cz/~rdivacky/boot2-final-diet.patch includes these changes: o bunch of variables are turned into uint8_t=20 o initial setting of namep[] in lookup() is removed as it's only overwritten a few lines down o kname is explicitly initialized in main() as BSS in boot2 is not zeroed o the "fmt" dance in load() is removed o buf in printf() is made static to save space Please test/review this patch. John Baldwin already looked and I booted it so it should be quite safe. I plan to commit this in a few days unless problems are found.. thank you! roman p.s. for those interested - with a few other changes (to llvm, not freebsd)= we do fit within boot2 limit :) --qDbXVdCdHGoSgWSk Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (FreeBSD) iEYEARECAAYFAk12ab0ACgkQLVEj6D3CBEwDkgCfSdtLkNKv2OiRTuxuISlUBlig ZCUAn3VL44Ox+wqDmzO9OB2sfRbpJrba =u5vk -----END PGP SIGNATURE----- --qDbXVdCdHGoSgWSk--