[PATCH 3/3] RFC: ARM: head: Debug prints for section mappings
Nicolas Pitre
nico at fluxnic.net
Fri Sep 4 14:33:14 EDT 2020
On Fri, 4 Sep 2020, Nicolas Pitre wrote:
> On Fri, 4 Sep 2020, Linus Walleij wrote:
>
> > + .macro dbg_pr_ram
> > + mov r5, r0 /* Save r0 in r5 */
> > + adr r0, __debug_tmp
> > + stmia r0, {r1-r6}
> > + mov r6, r3 /* Save r3 to r6 (print corrupts r3) */
>
> A long long time ago I had a patch that shuffled registers around so
> that the long lived values would be kept in r4 and above so to free
> r0-r3 for short lived values and parameter passing to make things easier
> when doing this sort of thing. I don't remember if I pushed it to the
> patch system, and if I did probably it got outdated and I didn't refresh
> it.
Found it. It is here:
https://www.arm.linux.org.uk/developer/patches/viewpatch.php?id=7234/2
Nicolas
More information about the linux-arm-kernel
mailing list