Home | History | Annotate | Line # | Download | only in mips
h_initfini_align.S revision 1.1.8.2
      1 /*	$NetBSD: h_initfini_align.S,v 1.1.8.2 2014/08/20 00:04:49 tls Exp $	*/
      2 
      3 #include <machine/asm.h>
      4 
      5 RCSID("$NetBSD: h_initfini_align.S,v 1.1.8.2 2014/08/20 00:04:49 tls Exp $")
      6 
      7 /*
      8  * LINTSTUB: bool check_stack_alignment(void);
      9  */
     10 
     11 LEAF_NOPROFILE(check_stack_alignment)
     12 #ifdef __mips_o32
     13 	andi	v1,sp,3
     14 #else
     15 	andi	v1,sp,7
     16 #endif
     17 	sltiu	v0,v1,1
     18 	jr	ra
     19 END(check_stack_alignment)
     20