xref: /freebsd/contrib/netbsd-tests/lib/csu/arch/vax/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
11_ENTRY(check_stack_alignment, 0)
12	clrl	%r0
13	bitl	$3,%sp
14	bneq	1f
15	incl	%r0
161:	ret
17END(check_stack_alignment)
18