Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20230212223442.GQ4163@brightrain.aerifal.cx>
Date: Sun, 12 Feb 2023 17:34:43 -0500
From: Rich Felker <dalias@...c.org>
To: Bastian Bittorf <bb@....de>
Cc: musl@...ts.openwall.com, mailinglist <openwrt-devel@...ts.openwrt.org>
Subject: Re: 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

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.