Source-Changes-HG archive

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

[src/trunk]: src/tests/lib/libc/arch/m68k provide a test function, avoids cra...



details:   https://anonhg.NetBSD.org/src/rev/85786d899b5f
branches:  trunk
changeset: 839236:85786d899b5f
user:      mlelstv <mlelstv%NetBSD.org@localhost>
date:      Sun Feb 10 09:54:39 2019 +0000

description:
provide a test function, avoids crashing tests with SIGSEGV.

diffstat:

 tests/lib/libc/arch/m68k/return_one.S |  11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)

diffs (18 lines):

diff -r 26208b2bce16 -r 85786d899b5f tests/lib/libc/arch/m68k/return_one.S
--- a/tests/lib/libc/arch/m68k/return_one.S     Sun Feb 10 08:39:48 2019 +0000
+++ b/tests/lib/libc/arch/m68k/return_one.S     Sun Feb 10 09:54:39 2019 +0000
@@ -1,8 +1,9 @@
-/*     $NetBSD: return_one.S,v 1.1 2011/07/18 23:16:09 jym Exp $ */
+/*     $NetBSD: return_one.S,v 1.2 2019/02/10 09:54:39 mlelstv Exp $ */
 
 #include <machine/asm.h>
 
-.globl return_one, return_one_end;
-
-return_one: return_one_end:
-       nop
+_ENTRY(return_one)
+       moveq #1,%d0
+       rts
+       .globl return_one_end
+return_one_end:



Home | Main Index | Thread Index | Old Index