summaryrefslogtreecommitdiffstats
path: root/contrib/netbsd-tests/lib/csu/arch/vax/h_initfini_align.S
blob: a751e1f3dab099a6f468b875035743f60590feb9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/*	$NetBSD: h_initfini_align.S,v 1.1 2013/12/11 17:31:56 matt Exp $	*/

#include <machine/asm.h>

RCSID("$NetBSD: h_initfini_align.S,v 1.1 2013/12/11 17:31:56 matt Exp $")

/*
 * LINTSTUB: bool check_stack_alignment(void);
 */

_ENTRY(check_stack_alignment, 0)
	clrl	%r0
	bitl	$3,%sp
	bneq	1f
	incl	%r0
1:	ret
END(check_stack_alignment)
OpenPOWER on IntegriCloud