11.1Smatt/*	$NetBSD: h_initfini_align.S,v 1.1 2013/12/11 17:31:55 matt Exp $	*/
21.1Smatt
31.1Smatt#include <machine/asm.h>
41.1Smatt
51.1SmattRCSID("$NetBSD: h_initfini_align.S,v 1.1 2013/12/11 17:31:55 matt Exp $")
61.1Smatt
71.1Smatt/*
81.1Smatt * LINTSTUB: bool check_stack_alignment(void);
91.1Smatt */
101.1Smatt
111.1SmattLEAF_NOPROFILE(check_stack_alignment, 0)
121.1Smatt	ldiq	v0, 0
131.1Smatt	and	sp, 7, t0
141.1Smatt	cmoveq	t0, 1, v0
151.1Smatt	ret
161.1SmattEND(check_stack_alignment)
17