xref: /freebsd/contrib/netbsd-tests/lib/csu/arch/i386/h_initfini_align.S (revision 9268022b74279434ed6300244e3f977e56a8ceb5)
1*57718be8SEnji Cooper/*	$NetBSD: h_initfini_align.S,v 1.2 2010/12/12 18:21:21 joerg Exp $	*/
2*57718be8SEnji Cooper
3*57718be8SEnji Cooper#include <machine/asm.h>
4*57718be8SEnji Cooper
5*57718be8SEnji CooperRCSID("$NetBSD: h_initfini_align.S,v 1.2 2010/12/12 18:21:21 joerg Exp $")
6*57718be8SEnji Cooper
7*57718be8SEnji Cooper_ENTRY(check_stack_alignment)
8*57718be8SEnji Cooper	movl	%esp, %eax
9*57718be8SEnji Cooper	andl	$3, %eax
10*57718be8SEnji Cooper	setz	%al
11*57718be8SEnji Cooper	movzbl	%al, %eax
12*57718be8SEnji Cooper	ret
13