Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 8 Mar 2011 18:39:09 +0100
From:      Roman Divacky <rdivacky@freebsd.org>
To:        current@freebsd.org
Subject:   [TESTING]: one more boot2 shrinking patch
Message-ID:  <20110308173909.GA71091@freebsd.org>

next in thread | raw e-mail | index | archive | help

--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110308173909.GA71091>