From 4d49583e911be79ec7bec8d7bfde6590b363a061 Mon Sep 17 00:00:00 2001 From: John van Groningen Date: Tue, 14 Jun 2016 11:49:12 +0000 Subject: fix RtoAC, 8 byte align the stack pointer on ARM before calling sprintf --- armstartup.s | 3 +++ 1 file changed, 3 insertions(+) diff --git a/armstartup.s b/armstartup.s index 196c3f7..ce3ca03 100644 --- a/armstartup.s +++ b/armstartup.s @@ -1416,7 +1416,10 @@ RtoAC: lao r0,sprintf_buffer,0 otoa r1,printf_real_string,0 otoa r0,sprintf_buffer,0 + mov r4,sp + and sp,sp,#-8 bl sprintf + mov sp,r4 .else lao r0,sprintf_buffer,1 otoa r0,sprintf_buffer,1 -- cgit v1.2.3