xref: /freebsd/contrib/netbsd-tests/lib/csu/arch/arm/h_initfini_align.S (revision 7ef62cebc2f965b0f640263e179276928885e33d)
1/*	$NetBSD: h_initfini_align.S,v 1.1 2013/12/11 17:31:56 matt Exp $	*/
2
3#include <machine/asm.h>
4
5RCSID("$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
11ARM_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
20END(check_stack_alignment)
21