Home | History | Annotate | Line # | Download | only in mips
h_initfini_align.S revision 1.1.4.2
      1 /*	$NetBSD: h_initfini_align.S,v 1.1.4.2 2014/05/22 11:42:19 yamt Exp $	*/
      2 
      3 #include <machine/asm.h>
      4 
      5 RCSID("$NetBSD: h_initfini_align.S,v 1.1.4.2 2014/05/22 11:42:19 yamt 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