From owner-freebsd-current@FreeBSD.ORG Mon Mar 14 18:59:46 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 73FFC1065672 for ; Mon, 14 Mar 2011 18:59:46 +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 2BC9B8FC12 for ; Mon, 14 Mar 2011 18:59:45 +0000 (UTC) Received: from lev.vlakno.cz (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id C95129CB14A for ; Mon, 14 Mar 2011 19:59:43 +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 x0dlOutPVp06 for ; Mon, 14 Mar 2011 19:59:43 +0100 (CET) Received: from vlk.vlakno.cz (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id 218BC9CB4D1 for ; Mon, 14 Mar 2011 19:59:43 +0100 (CET) Received: (from rdivacky@localhost) by vlk.vlakno.cz (8.14.4/8.14.4/Submit) id p2EIxhSd098601 for current@freebsd.org; Mon, 14 Mar 2011 19:59:43 +0100 (CET) (envelope-from rdivacky) Date: Mon, 14 Mar 2011 19:59:43 +0100 From: Roman Divacky To: current@freebsd.org Message-ID: <20110314185943.GA98118@freebsd.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="MGYHOYXEY6WxJCY8" Content-Disposition: inline User-Agent: Mutt/1.4.2.3i Cc: Subject: [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: Mon, 14 Mar 2011 18:59:46 -0000 --MGYHOYXEY6WxJCY8 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi, This patch: http://lev.vlakno.cz/~rdivacky/boot2-mregparm.patch makes boot2 to be compiled with -mregparm=3 (which shrinks it some). It changes CFLAGS to include -mregparm=3 and also rewrites sio.S to use register passing. This survived my testing in qemu and jhb@s review. Please test this patch with boot2 booting via serial console, and with gptboot/zfsboot using serial console. Thank you! This is the last FreeBSD patch in the clang-boot2 saga so please help. roman --MGYHOYXEY6WxJCY8 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (FreeBSD) iEYEARECAAYFAk1+ZZ4ACgkQLVEj6D3CBEwImQCeNFeF9o4p2/3enbZrLeOKnzOl 1H4Ani/el7WJcU4jgWnmIT34TNgoeMIN =RxqV -----END PGP SIGNATURE----- --MGYHOYXEY6WxJCY8--