xref: /freebsd/contrib/netbsd-tests/lib/csu/arch/arm/h_initfini_align.S (revision e6bfd18d21b225af6a0ed67ceeaf1293b7b9eba5)
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