blob: 2abc56fb1ae85c63764d609f8f362d14f1a1e785 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
/* $NetBSD: h_initfini_align.S,v 1.1 2013/12/11 17:31:56 matt Exp $ */
#include <machine/asm.h>
RCSID("$NetBSD: h_initfini_align.S,v 1.1 2013/12/11 17:31:56 matt Exp $")
/*
* LINTSTUB: bool check_stack_alignment(void);
*/
ARM_ENTRY(check_stack_alignment)
#ifdef __ARM_EABI__
tst sp, #7
#else
tst sp, #3
#endif
movne r0, #0
moveq r0, #1
RET
END(check_stack_alignment)
|