Home | History | Annotate | Line # | Download | only in mips
      1 /*	$NetBSD: h_initfini_align.S,v 1.1 2013/12/11 17:31:56 matt Exp $	*/
      2 
      3 #include <machine/asm.h>
      4 
      5 RCSID("$NetBSD: h_initfini_align.S,v 1.1 2013/12/11 17:31:56 matt 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