Module Name:    src
Committed By:   skrll
Date:           Fri Nov 15 11:48:30 UTC 2013

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

Log Message:
Check stack alignment on hppa.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 src/tests/lib/csu/arch/hppa/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/hppa/h_initfini_align.S
diff -u /dev/null src/tests/lib/csu/arch/hppa/h_initfini_align.S:1.1
--- /dev/null	Fri Nov 15 11:48:30 2013
+++ src/tests/lib/csu/arch/hppa/h_initfini_align.S	Fri Nov 15 11:48:30 2013
@@ -0,0 +1,12 @@
+/*	$NetBSD: h_initfini_align.S,v 1.1 2013/11/15 11:48:30 skrll Exp $	*/
+
+#include <machine/asm.h>
+
+RCSID("$NetBSD: h_initfini_align.S,v 1.1 2013/11/15 11:48:30 skrll Exp $")
+
+LEAF_ENTRY(check_stack_alignment)
+	extru	%sp,31,6,%ret0
+	comiclr,<> 0, %ret0, %ret0
+	ldi	1,%ret0
+	bv,n	%r0(%r2)
+EXIT(check_stack_alignment)

Reply via email to