Home | History | Annotate | Line # | Download | only in x86_64
      1  1.2  joerg /*	$NetBSD: h_initfini_align.S,v 1.2 2010/12/12 18:21:21 joerg Exp $	*/
      2  1.1  joerg 
      3  1.1  joerg #include <machine/asm.h>
      4  1.1  joerg 
      5  1.2  joerg RCSID("$NetBSD: h_initfini_align.S,v 1.2 2010/12/12 18:21:21 joerg Exp $")
      6  1.1  joerg 
      7  1.1  joerg _ENTRY(check_stack_alignment)
      8  1.1  joerg 	movl	%esp, %eax
      9  1.1  joerg 	andl	$15, %eax
     10  1.1  joerg 	subl	$8, %eax
     11  1.2  joerg 	sete	%al
     12  1.2  joerg 	movzbl	%al, %eax
     13  1.1  joerg 	ret
     14