From owner-freebsd-current@FreeBSD.ORG Sun Mar 20 19:41:42 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 C84AE106564A; Sun, 20 Mar 2011 19:41:41 +0000 (UTC) (envelope-from freebsd-listen@fabiankeil.de) Received: from smtprelay01.ispgateway.de (smtprelay01.ispgateway.de [80.67.31.35]) by mx1.freebsd.org (Postfix) with ESMTP id 8AABD8FC0A; Sun, 20 Mar 2011 19:41:41 +0000 (UTC) Received: from [78.34.148.193] (helo=r500.local) by smtprelay01.ispgateway.de with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.68) (envelope-from ) id 1Q1OVQ-0005tz-3A; Sun, 20 Mar 2011 20:41:40 +0100 Date: Sun, 20 Mar 2011 20:41:04 +0100 From: Fabian Keil To: Roman Divacky Message-ID: <20110320204104.2cc0ef74@r500.local> In-Reply-To: <20110314185943.GA98118@freebsd.org> References: <20110314185943.GA98118@freebsd.org> X-Mailer: Claws Mail 3.7.8 (GTK+ 2.22.1; amd64-portbld-freebsd9.0) X-PGP-KEY-URL: http://www.fabiankeil.de/gpg-keys/freebsd-listen-2008-08-18.asc Mime-Version: 1.0 Content-Type: multipart/signed; micalg=PGP-SHA1; boundary="Sig_/4ZNq3+Y40E5FYlUvTUdNbaY"; protocol="application/pgp-signature" X-Df-Sender: 775067 Cc: current@freebsd.org Subject: Re: [TESTING]: boot2 compilation with -mregparm=3 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: Sun, 20 Mar 2011 19:41:42 -0000 --Sig_/4ZNq3+Y40E5FYlUvTUdNbaY Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Roman Divacky wrote: > This patch: >=20 >=20 > http://lev.vlakno.cz/~rdivacky/boot2-mregparm.patch >=20 >=20 > makes boot2 to be compiled with -mregparm=3D3 (which shrinks it > some). It changes CFLAGS to include -mregparm=3D3 and also > rewrites sio.S to use register passing. >=20 > This survived my testing in qemu and jhb@s review. Works for me on amd64 with gcc, but I don't use either a serial console or gptboot/zfsboot. Fabian --Sig_/4ZNq3+Y40E5FYlUvTUdNbaY Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (FreeBSD) iEYEARECAAYFAk2GWFcACgkQBYqIVf93VJ2YzQCfQPC/ys9xa9AEQ0aW0klop3OB +7YAnR8gjr7YeA+gNMvVqETwkdrTZ+CW =hQ6P -----END PGP SIGNATURE----- --Sig_/4ZNq3+Y40E5FYlUvTUdNbaY--