coro: Asm coro_transfer for arm7
Marc Lehmann
schmorp at schmorp.de
Sat Dec 5 22:24:17 CET 2015
On Wed, Dec 02, 2015 at 02:25:52PM +0300, Nick Zavaritsky <mejedi at gmail.com> wrote:
> > Sorry for nagging, but I’ve got no response on this.
> > Could you please consider my patch?
> I have a few questions on the specifics of your patch, though:
4. It seems the __ARM_ARCH==7 test is not quite good enough, I get:
Just guessing, but something along the lines of this might do for
coro_transfer? (I haven't been able to test it):
#if __VFP_FP__
"\tvpush {d8-d15}\n"
#define NUM_SAVED (9 + 8 * 2)
#else
#define NUM_SAVED 9
#endif
"\tpush {r4-r11,lr}\n"
"\tstr sp, [r0]\n"
"\tldr sp, [r1]\n"
"\tpop {r4-r11,lr}\n"
#if __VFP_FP__
"\tvpop {d8-d15}\n"
#endif
"\tmov r15, lr\n"
--
The choice of a Deliantra, the free code+content MORPG
-----==- _GNU_ http://www.deliantra.net
----==-- _ generation
---==---(_)__ __ ____ __ Marc Lehmann
--==---/ / _ \/ // /\ \/ / schmorp at schmorp.de
-=====/_/_//_/\_,_/ /_/\_\
More information about the libev
mailing list