[En-Nut-Discussion] CM3 Stack alignment

bon at elektron.ikp.physik.tu-darmstadt.de bon at elektron.ikp.physik.tu-darmstadt.de
Mon Sep 23 14:18:01 CEST 2013


for va_arg() to work with double and uint64_t on cortex and arm, the stack
needs to be aligned on a 8-byte boundary.
SVN r5340 places the startup MSP and PSP on such a boundary for STM32, LM3
and MXP17, and r5341 does the same for Thread stack on Cortex. app/printf
now works as expected on STM32 without the workaround introduced before.

Mantainers of other arm families are requested to check if a similar fix is
needed for them.
Mantainers of cortex families should check the patches for correctness, with
having in mind the remark about different core revisions at

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