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/sparc64 Add stack alignement checking for...



details:   https://anonhg.NetBSD.org/src/rev/7d9ae32ec3e8
branches:  trunk
changeset: 791391:7d9ae32ec3e8
user:      martin <martin%NetBSD.org@localhost>
date:      Fri Nov 15 20:00:20 2013 +0000

description:
Add stack alignement checking for sparc64

diffstat:

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

diffs (15 lines):

diff -r 8163273881d3 -r 7d9ae32ec3e8 tests/lib/csu/arch/sparc64/h_initfini_align.S
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/lib/csu/arch/sparc64/h_initfini_align.S     Fri Nov 15 20:00:20 2013 +0000
@@ -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



Home | Main Index | Thread Index | Old Index