Re: [PATCH] arm: ARMv4 assembly compatibility

2022-08-21 Thread Sergei Antonov
On Sat, 20 Aug 2022 at 22:13, Tom Rini wrote: > So, my recollection at the time was that we were / had removed all > upstream platforms that were using a core design that didn't accept "bx > lr". If you're going to upstream the rest of your platform, please do a > v2 that also updates the comment

Re: [PATCH] arm: ARMv4 assembly compatibility

2022-08-20 Thread Tom Rini
On Wed, Aug 17, 2022 at 11:27:39AM +0300, Sergei Antonov wrote: > On Tue, 16 Aug 2022 at 19:17, Andre Przywara wrote: > > > > On Wed, 10 Aug 2022 12:04:46 +0300 > > Sergei Antonov wrote: > > > > Hi, > > > > > There is currently a problem that U-Boot can not work on ARMv4 > > > because assembly im

Re: [PATCH] arm: ARMv4 assembly compatibility

2022-08-17 Thread Sergei Antonov
On Tue, 16 Aug 2022 at 19:17, Andre Przywara wrote: > > On Wed, 10 Aug 2022 12:04:46 +0300 > Sergei Antonov wrote: > > Hi, > > > There is currently a problem that U-Boot can not work on ARMv4 > > because assembly imlementations of memcpy() and some other functions > > use "bx lr" instruction that

Re: [PATCH] arm: ARMv4 assembly compatibility

2022-08-16 Thread Ralph Siemsen
On Tue, Aug 16, 2022 at 12:17 PM Andre Przywara wrote: > > So what is the story here? This commit seems to suggest U-Boot doesn't support > even ARMv5 without "T", has this changed? There are probably other code > places which would need adjustment to run on ARMv4? Note that gcc 6.0 and later con

Re: [PATCH] arm: ARMv4 assembly compatibility

2022-08-16 Thread Andre Przywara
On Wed, 10 Aug 2022 12:04:46 +0300 Sergei Antonov wrote: Hi, > There is currently a problem that U-Boot can not work on ARMv4 > because assembly imlementations of memcpy() and some other functions > use "bx lr" instruction that is not available on ARMv4 ("mov pc, lr" > should be used instead).

Re: [PATCH] arm: ARMv4 assembly compatibility

2022-08-16 Thread Sergei Antonov
On Wed, 10 Aug 2022 at 12:05, Sergei Antonov wrote: > > There is currently a problem that U-Boot can not work on ARMv4 > because assembly imlementations of memcpy() and some other functions > use "bx lr" instruction that is not available on ARMv4 ("mov pc, lr" > should be used instead). Hello! Th

[PATCH] arm: ARMv4 assembly compatibility

2022-08-10 Thread Sergei Antonov
There is currently a problem that U-Boot can not work on ARMv4 because assembly imlementations of memcpy() and some other functions use "bx lr" instruction that is not available on ARMv4 ("mov pc, lr" should be used instead). A working preprocessor-based solution to this problem is found in arch/a