xref: /freebsd/contrib/netbsd-tests/lib/csu/arch/mips/h_initfini_align.S (revision 1ce4b357402c3cd0cba264a15c06b6fd00591088)
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
11LEAF_NOPROFILE(check_stack_alignment)
12#ifdef __mips_o32
13	andi	v1,sp,3
14#else
15	andi	v1,sp,7
16#endif
17	sltiu	v0,v1,1
18	jr	ra
19END(check_stack_alignment)
20