freebsd-dev/contrib/netbsd-tests/lib/csu/arch/alpha/h_initfini_align.S
Enji Cooper 57718be8fa Import the NetBSD test suite from ^/vendor/NetBSD/tests/09.30.2014_20.45 ,
minus the vendor Makefiles

Provide directions for how to bootstrap the vendor sources in
FREEBSD-upgrade

MFC after 2 weeks
Discussed with: rpaulo
Sponsored by: EMC / Isilon Storage Division
2014-10-02 23:26:49 +00:00

17 lines
346 B
ArmAsm

/* $NetBSD: h_initfini_align.S,v 1.1 2013/12/11 17:31:55 matt Exp $ */
#include <machine/asm.h>
RCSID("$NetBSD: h_initfini_align.S,v 1.1 2013/12/11 17:31:55 matt Exp $")
/*
* LINTSTUB: bool check_stack_alignment(void);
*/
LEAF_NOPROFILE(check_stack_alignment, 0)
ldiq v0, 0
and sp, 7, t0
cmoveq t0, 1, v0
ret
END(check_stack_alignment)