From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H2 autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 8519 invoked from network); 12 Feb 2023 22:34:59 -0000 Received: from second.openwall.net (193.110.157.125) by inbox.vuxu.org with ESMTPUTF8; 12 Feb 2023 22:34:59 -0000 Received: (qmail 23723 invoked by uid 550); 12 Feb 2023 22:34:56 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Reply-To: musl@lists.openwall.com Received: (qmail 23682 invoked from network); 12 Feb 2023 22:34:55 -0000 Date: Sun, 12 Feb 2023 17:34:43 -0500 From: Rich Felker To: Bastian Bittorf Cc: musl@lists.openwall.com, mailinglist Message-ID: <20230212223442.GQ4163@brightrain.aerifal.cx> References: <20230211125147.7ud3rx2ozflm7zsb@email> <20230211140103.GE4163@brightrain.aerifal.cx> <20230211192739.zfizfkfe5xiwikjb@email> <20230211193044.GM4163@brightrain.aerifal.cx> <20230212081704.tnsd6v2it6unmsqy@email> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230212081704.tnsd6v2it6unmsqy@email> User-Agent: Mutt/1.5.21 (2010-09-15) Subject: Re: [musl] busybox problem on powerpc PPC/32bit (hardware TP-Link-WDR-4900-v1) On Sun, Feb 12, 2023 at 08:17:04AM +0000, Bastian Bittorf wrote: > On Sat, Feb 11, 2023 at 02:30:44PM -0500, Rich Felker wrote: > > > > .hidden __hwcap > > > > .long __hwcap-. > > > > -1: mflr 4 > > > > - lwz 5, 0(4) > > > > - lwzx 4, 4, 5 > > > > - andis. 4, 4, 0x80 > > > > +1: mflr 6 > > > > + lwz 5, 0(6) > > > > + lwzx 6, 6, 5 > > > > + andis. 6, 6, 0x80 > > > > beq 1f > > > > .long 0x11c35b01 /* evldd 14,88(3) */ > > > > .long 0x11e36301 /* ... */ > > It works! > > ~ # test A -gt 5 && echo OK > ash: A: out of range > ~ # echo $? > 2 > ~ # uname -a > Linux (none) 6.1.11 #1 Sun Feb 12 09:06:57 CET 2023 ppc GNU/Linux > > In the end i directly changed the sourcecode, > using the patchdir did not work an my side, i'am sure > a made a mistake here. > > Anyway - i'am happy! > Is there some more, where i can help/test? > > I uploaded kernel + busybox/initrd for qemu here: > http://intercity-vpn.de/mpc85xx/musl-1.2.3+ppcpatch/ Thanks for following up. I'll go ahead and include this change for the upcoming release. Rich