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