aboutsummaryrefslogtreecommitdiff
path: root/lib/alloca-arm.S
diff options
context:
space:
mode:
Diffstat (limited to 'lib/alloca-arm.S')
-rw-r--r--lib/alloca-arm.S7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/alloca-arm.S b/lib/alloca-arm.S
index 02c554e..68556e3 100644
--- a/lib/alloca-arm.S
+++ b/lib/alloca-arm.S
@@ -3,8 +3,15 @@
.global alloca
.type alloca, %function
alloca:
+#ifdef __TINYC__
+ .int 0xe060d00d
+ .int 0xe3cdd007
+ .int 0xe1a0000d
+ .int 0xe1a0f00e
+#else
rsb sp, r0, sp
bic sp, sp, #7
mov r0, sp
mov pc, lr
+#endif
.size alloca, .-alloca