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/hppa Check stack alignment on hppa.
details: https://anonhg.NetBSD.org/src/rev/ad8fc5bc0419
branches: trunk
changeset: 791386:ad8fc5bc0419
user: skrll <skrll%NetBSD.org@localhost>
date: Fri Nov 15 11:48:30 2013 +0000
description:
Check stack alignment on hppa.
diffstat:
tests/lib/csu/arch/hppa/h_initfini_align.S | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
diffs (16 lines):
diff -r 710632878a0c -r ad8fc5bc0419 tests/lib/csu/arch/hppa/h_initfini_align.S
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/lib/csu/arch/hppa/h_initfini_align.S Fri Nov 15 11:48:30 2013 +0000
@@ -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)
Home |
Main Index |
Thread Index |
Old Index