Module Name:    src
Committed By:   martin
Date:           Fri Nov 15 20:00:20 UTC 2013

Added Files:
        src/tests/lib/csu/arch/sparc64: h_initfini_align.S

Log Message:
Add stack alignement checking for sparc64


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 src/tests/lib/csu/arch/sparc64/h_initfini_align.S

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: src/tests/lib/csu/arch/sparc64/h_initfini_align.S
diff -u /dev/null src/tests/lib/csu/arch/sparc64/h_initfini_align.S:1.1
--- /dev/null	Fri Nov 15 20:00:20 2013
+++ src/tests/lib/csu/arch/sparc64/h_initfini_align.S	Fri Nov 15 20:00:20 2013
@@ -0,0 +1,11 @@
+/*	$NetBSD: h_initfini_align.S,v 1.1 2013/11/15 20:00:20 martin Exp $	*/
+
+#include <machine/asm.h>
+
+RCSID("$NetBSD: h_initfini_align.S,v 1.1 2013/11/15 20:00:20 martin Exp $")
+
+_ENTRY(check_stack_alignment)
+	add	%sp, BIAS, %o1
+	and	%o1, 15, %o2
+	retl
+	 not	%o2, %o0

Reply via email to