[En-Nut-Discussion] CM3:

Uwe Bonnes bon at elektron.ikp.physik.tu-darmstadt.de
Wed Jul 3 20:28:23 CEST 2013


Hello,

when compiling for CM3, context.c triggers:
/../../nut/arch/cm3/os/context.c
/tmp/ccFFgQ3C.s: Assembler messages:
/tmp/ccFFgQ3C.s:124: writing to APSR without specifying a bitmask is deprecated
/tmp/ccFFgQ3C.s:313: writing to APSR without specifying a bitmask is deprecated

This is caused by
        "msr     psr, r4\n\t"           /* ...and save in psr. */
Writing
        "msr     eapsr_nzcvq, r4\n\t"   /* ...and save execution and application status in psr. */

lets the assembler message go away. Is this the right cure? Or should the
execution status not be restored and 
        "msr     apsr_nzcvq, r4\n\t"   /* ...and save application status in psr. */

used instead?

Comments welcome!
-- 
Uwe Bonnes                bon at elektron.ikp.physik.tu-darmstadt.de

Institut fuer Kernphysik  Schlossgartenstrasse 9  64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------


More information about the En-Nut-Discussion mailing list