From: Bastian Bittorf <bb@npl.de>
To: Rich Felker <dalias@libc.org>
Cc: musl@lists.openwall.com, mailinglist <openwrt-devel@lists.openwrt.org>
Subject: Re: [musl] busybox problem on powerpc PPC/32bit (hardware TP-Link-WDR-4900-v1)
Date: Sun, 12 Feb 2023 08:17:04 +0000 [thread overview]
Message-ID: <20230212081704.tnsd6v2it6unmsqy@email> (raw)
In-Reply-To: <20230211193044.GM4163@brightrain.aerifal.cx>
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/
bye, Bastian
next prev parent reply other threads:[~2023-02-12 8:17 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-11 12:51 Bastian Bittorf
2023-02-11 14:01 ` Rich Felker
2023-02-11 19:27 ` Bastian Bittorf
2023-02-11 19:30 ` Rich Felker
2023-02-12 8:17 ` Bastian Bittorf [this message]
2023-02-12 22:34 ` Rich Felker
2023-02-11 14:47 ` Bastian Bittorf
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230212081704.tnsd6v2it6unmsqy@email \
--to=bb@npl.de \
--cc=dalias@libc.org \
--cc=musl@lists.openwall.com \
--cc=openwrt-devel@lists.openwrt.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/musl/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).