diff options
author | John van Groningen | 2016-06-14 11:49:12 +0000 |
---|---|---|
committer | John van Groningen | 2016-06-14 11:49:12 +0000 |
commit | 4d49583e911be79ec7bec8d7bfde6590b363a061 (patch) | |
tree | 8d72b5a66766669c7ba1efe39960c22676e194bc | |
parent | fix print_record and DtoAC for records (diff) |
fix RtoAC, 8 byte align the stack pointer on ARM before calling sprintf
-rw-r--r-- | armstartup.s | 3 |
1 files changed, 3 insertions, 0 deletions
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 |