Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests/lib/csu/arch/sparc Add stack alignement test for sparc



details:   https://anonhg.NetBSD.org/src/rev/a0f9aad07cde
branches:  trunk
changeset: 325206:a0f9aad07cde
user:      martin <martin%NetBSD.org@localhost>
date:      Thu Dec 12 11:22:26 2013 +0000

description:
Add stack alignement test for sparc

diffstat:

 tests/lib/csu/arch/sparc/h_initfini_align.S |  10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diffs (14 lines):

diff -r 3828f3e34655 -r a0f9aad07cde tests/lib/csu/arch/sparc/h_initfini_align.S
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/lib/csu/arch/sparc/h_initfini_align.S       Thu Dec 12 11:22:26 2013 +0000
@@ -0,0 +1,10 @@
+/*     $NetBSD: h_initfini_align.S,v 1.1 2013/12/12 11:22:26 martin Exp $      */
+
+#include <machine/asm.h>
+
+RCSID("$NetBSD: h_initfini_align.S,v 1.1 2013/12/12 11:22:26 martin Exp $")
+
+_ENTRY(check_stack_alignment)
+       and     %sp, 7, %o1
+       retl
+        not    %o1, %o0



Home | Main Index | Thread Index | Old Index