From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id aPWhN3ADM2AXDQAA0tVLHw (envelope-from ) for ; Mon, 22 Feb 2021 01:05:52 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id wMZyM3ADM2DoIwAA1q6Kng (envelope-from ) for ; Mon, 22 Feb 2021 01:05:52 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 5BF9D1D39B for ; Mon, 22 Feb 2021 02:05:52 +0100 (CET) Received: from localhost ([::1]:47564 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lDzfb-0007Zc-8y for larch@yhetil.org; Sun, 21 Feb 2021 20:05:51 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:35658) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lDzdP-0005tF-U8; Sun, 21 Feb 2021 20:03:35 -0500 Received: from dd26836.kasserver.com ([85.13.145.193]:58300) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lDzdO-0007nF-DV; Sun, 21 Feb 2021 20:03:35 -0500 Received: from localhost (80-110-127-104.cgn.dynamic.surfer.at [80.110.127.104]) by dd26836.kasserver.com (Postfix) with ESMTPSA id 6D8C63362087; Mon, 22 Feb 2021 02:03:31 +0100 (CET) Date: Mon, 22 Feb 2021 02:03:30 +0100 From: Danny Milosavljevic To: Jan Nieuwenhuizen Subject: Re: Update on wip-arm-bootstrap Message-ID: <20210222020330.74832a2b@scratchpost.org> In-Reply-To: <87v9als2ag.fsf@gnu.org> References: <87blco9v58.fsf@gnu.org> <87h7m91d3j.fsf@yucca> <874ki9cabq.fsf@gnu.org> <20210219052341.5f10e637@scratchpost.org> <871rdceg30.fsf@gnu.org> <87v9als2ag.fsf@gnu.org> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/i76JWsn_Ts05w_fkm.7cdAS"; protocol="application/pgp-signature"; micalg=pgp-sha512 Received-SPF: none client-ip=85.13.145.193; envelope-from=dannym@scratchpost.org; helo=dd26836.kasserver.com X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Vagrant Cascadian , guix-devel@gnu.org, bug-mes@gnu.org Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -4.47 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Queue-Id: 5BF9D1D39B X-Spam-Score: -4.47 X-Migadu-Scanner: scn0.migadu.com X-TUID: PlHQ/l3UcoeL --Sig_/i76JWsn_Ts05w_fkm.7cdAS Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi Janneke, Nice! Patch review: >+#if __ARM_EABI__ >+#define CLEAR_CACHE(BEG,END) \ >+{ \ >+ register unsigned long _beg __asm ("a1") =3D (unsigned long)(BEG); \ >+ register unsigned long _end __asm ("a2") =3D (unsigned long)(END); \ >+ register unsigned long _flg __asm ("a3") =3D 0; \ >+ __asm __volatile ("mov r7, 0x9f0002\n\t" \ should be mov r7, 0xf0002 in EABI. (SWI #(0x900000 + syscallnr) is for OABI syscalls only) >* sysdeps/unix/sysv/linux/arm/brk.c (__brk): Likewise.Likewise. Duplicate "Likewise". Otherwise LGTM! >But something like puts or printf segfaults "Illegal >instruction" in strlen: >--8<---------------cut here---------------start------------->8--- >(gdb) disas /r >Dump of assembler code for function strlen: > 0x0000d160 <+0>: 03 10 c0 e3 bic r1, r0, #3 >=3D> 0x0000d164 <+4>: 04 20 91 e4 ldr r2, [r1], #4 =20 >--8<---------------cut here---------------end--------------->8--- Hmm... looks good to me? Weird. I'm building it right now and will have a look. --Sig_/i76JWsn_Ts05w_fkm.7cdAS Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEds7GsXJ0tGXALbPZ5xo1VCwwuqUFAmAzAuIACgkQ5xo1VCww uqWcWQf8CRP7+WxqabHjgDuLaOoz3OLPyIFGDiAnhn/KdcVUiSSirOhHV5HIOfxe kT2CGd5akl+b69DPfaQRIHgEi2QhMgc4ZqUeXhC0keJwWLo1WI9nxCam1u78RIeG /CIcL6vh5mUh8odvjqto1I585J9YufbDQfzy7wjePE1lNN6NLovFotqkdEp7UuDZ eUZ0qE4ABKdNMIZLPQZFe855uStyI6wUwKQWbHH4SkC7G6AN4lRrzXGJIMbgd1ES 2tf3oll0HnNzkWjDBX6/nEix5jJTsjVgJlQA1PWSGKC9ZgP56G5kfyFIiZoU358u k41m+j8vYO74ou9mPxU/mduzt+8Kmg== =A/qy -----END PGP SIGNATURE----- --Sig_/i76JWsn_Ts05w_fkm.7cdAS--