]> CyberLeo.Net >> Repos - FreeBSD/releng/10.2.git/blob - contrib/netbsd-tests/lib/csu/arch/arm/h_initfini_align.S
- Copy stable/10@285827 to releng/10.2 in preparation for 10.2-RC1
[FreeBSD/releng/10.2.git] / contrib / netbsd-tests / lib / csu / arch / arm / h_initfini_align.S
1 /*      $NetBSD: h_initfini_align.S,v 1.1 2013/12/11 17:31:56 matt Exp $        */
2
3 #include <machine/asm.h>
4
5 RCSID("$NetBSD: h_initfini_align.S,v 1.1 2013/12/11 17:31:56 matt Exp $")
6
7 /*
8  * LINTSTUB: bool check_stack_alignment(void);
9  */
10
11 ARM_ENTRY(check_stack_alignment)
12 #ifdef __ARM_EABI__
13         tst     sp, #7
14 #else
15         tst     sp, #3
16 #endif
17         movne   r0, #0
18         moveq   r0, #1
19         RET
20 END(check_stack_alignment)