]> git.saurik.com Git - apple/libc.git/blobdiff - pthreads/stack.s
Libc-498.1.5.tar.gz
[apple/libc.git] / pthreads / stack.s
index 5be1689d0d5805a7750fbaf47c344954fd3da2d8..a1e10d659f48c33455615c9a6314ff1c625a9f1c 100644 (file)
@@ -104,6 +104,25 @@ LEAF(__adjust_sp,0)
        subq    $0x100,%rax
        ret
 
+#elif defined(__arm__)
+
+#define        LEAF(name)                                      \
+       .align 2                                        @\
+       .globl  name                                    @\
+name:                                                  @\
+       .set    __framesize,0
+
+LEAF(__sp)
+       mov     r0,sp
+       bx      lr
+
+/*
+ * void *_adjust_sp(void *sp)
+ */
+LEAF(__adjust_sp)
+       sub     r0, r0, #0x100
+       bx      lr
+
 #else
 #error sp functions not defined for this architecture
 #endif