]> CyberLeo.Net >> Repos - FreeBSD/releng/10.2.git/blob - contrib/netbsd-tests/lib/csu/arch/i386/h_initfini_align.S
- Copy stable/10@285827 to releng/10.2 in preparation for 10.2-RC1
[FreeBSD/releng/10.2.git] / contrib / netbsd-tests / lib / csu / arch / i386 / h_initfini_align.S
1 /*      $NetBSD: h_initfini_align.S,v 1.2 2010/12/12 18:21:21 joerg Exp $       */
2
3 #include <machine/asm.h>
4
5 RCSID("$NetBSD: h_initfini_align.S,v 1.2 2010/12/12 18:21:21 joerg Exp $")
6
7 _ENTRY(check_stack_alignment)
8         movl    %esp, %eax
9         andl    $3, %eax
10         setz    %al
11         movzbl  %al, %eax
12         ret