From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id YDssAedLM2BODAAA0tVLHw (envelope-from ) for ; Mon, 22 Feb 2021 06:15:03 +0000 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id KMZ0OOZLM2AMHwAAbx9fmQ (envelope-from ) for ; Mon, 22 Feb 2021 06:15:02 +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 ABB6F1F33A for ; Mon, 22 Feb 2021 07:15:02 +0100 (CET) Received: from localhost ([::1]:45528 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lE4Un-00055n-Ge for larch@yhetil.org; Mon, 22 Feb 2021 01:15:01 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:47970) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lE4UO-00052r-3Y; Mon, 22 Feb 2021 01:14:36 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:48224) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lE4UL-0003yM-Bb; Mon, 22 Feb 2021 01:14:33 -0500 Received: from [2001:980:1b4f:1:42d2:832d:bb59:862] (port=48090 helo=dundal.janneke.lilypond.org) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lE4UK-0005n0-4X; Mon, 22 Feb 2021 01:14:32 -0500 From: Jan Nieuwenhuizen To: Danny Milosavljevic Subject: Re: Update on wip-arm-bootstrap Organization: AvatarAcademy.nl References: <87blco9v58.fsf@gnu.org> <87h7m91d3j.fsf@yucca> <874ki9cabq.fsf@gnu.org> <20210219052341.5f10e637@scratchpost.org> <871rdceg30.fsf@gnu.org> <87v9als2ag.fsf@gnu.org> <20210222020330.74832a2b@scratchpost.org> X-Url: http://AvatarAcademy.nl Date: Mon, 22 Feb 2021 07:14:29 +0100 In-Reply-To: <20210222020330.74832a2b@scratchpost.org> (Danny Milosavljevic's message of "Mon, 22 Feb 2021 02:03:30 +0100") Message-ID: <87r1l8ljcq.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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: -2.87 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; 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: ABB6F1F33A X-Spam-Score: -2.87 X-Migadu-Scanner: scn1.migadu.com X-TUID: X3nTdE8HsFgT Danny Milosavljevic writes: Hello Danny, > 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) Ok, great; that could help! >>* sysdeps/unix/sysv/linux/arm/brk.c (__brk): Likewise.Likewise. > > Duplicate "Likewise". > > Otherwise LGTM! Thanks. Testing a fixup now (currently only on my branch @gitlab). >>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=20 >>--8<---------------cut here---------------end--------------->8--- > > Hmm... looks good to me? Weird. Yes... > I'm building it right now and will have a look. Great, thanks! Janneke --=20 Jan Nieuwenhuizen | GNU LilyPond http://lilypond.org Freelance IT http://JoyofSource.com | Avatar=C2=AE http://AvatarAcademy.com