summaryrefslogtreecommitdiffstats
path: root/contrib/netbsd-tests/lib/csu/arch/x86_64/h_initfini_align.S
blob: fbc1e56a6354a08453545189ce5eb015837d145f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/*	$NetBSD: h_initfini_align.S,v 1.2 2010/12/12 18:21:21 joerg Exp $	*/

#include <machine/asm.h>

RCSID("$NetBSD: h_initfini_align.S,v 1.2 2010/12/12 18:21:21 joerg Exp $")

_ENTRY(check_stack_alignment)
	movl	%esp, %eax
	andl	$15, %eax
	subl	$8, %eax
	sete	%al
	movzbl	%al, %eax
	ret
OpenPOWER on IntegriCloud