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/sparc Sync sparc with sparc64



details:   https://anonhg.NetBSD.org/src/rev/9ba3aaed4cc1
branches:  trunk
changeset: 829016:9ba3aaed4cc1
user:      martin <martin%NetBSD.org@localhost>
date:      Sun Jan 14 19:59:51 2018 +0000

description:
Sync sparc with sparc64

diffstat:

 tests/lib/libc/arch/sparc/exec_prot_support.c |   7 ++++---
 tests/lib/libc/arch/sparc/return_one.S        |  11 +++++++----
 2 files changed, 11 insertions(+), 7 deletions(-)

diffs (44 lines):

diff -r 8a4f3f567e9a -r 9ba3aaed4cc1 tests/lib/libc/arch/sparc/exec_prot_support.c
--- a/tests/lib/libc/arch/sparc/exec_prot_support.c     Sun Jan 14 19:40:50 2018 +0000
+++ b/tests/lib/libc/arch/sparc/exec_prot_support.c     Sun Jan 14 19:59:51 2018 +0000
@@ -1,4 +1,4 @@
-/*      $NetBSD: exec_prot_support.c,v 1.1 2011/07/18 23:16:10 jym Exp $ */
+/*      $NetBSD: exec_prot_support.c,v 1.2 2018/01/14 19:59:51 martin Exp $ */
 
 /*-
  * Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -30,12 +30,13 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: exec_prot_support.c,v 1.1 2011/07/18 23:16:10 jym Exp $");
+__RCSID("$NetBSD: exec_prot_support.c,v 1.2 2018/01/14 19:59:51 martin Exp $");
 
 #include "../../common/exec_prot.h"
 
 int
 exec_prot_support(void)
 {
-       return NOTIMPL;
+
+       return PERPAGE_XP;
 }
diff -r 8a4f3f567e9a -r 9ba3aaed4cc1 tests/lib/libc/arch/sparc/return_one.S
--- a/tests/lib/libc/arch/sparc/return_one.S    Sun Jan 14 19:40:50 2018 +0000
+++ b/tests/lib/libc/arch/sparc/return_one.S    Sun Jan 14 19:59:51 2018 +0000
@@ -1,8 +1,11 @@
-/*     $NetBSD: return_one.S,v 1.1 2011/07/18 23:16:10 jym Exp $ */
+/*     $NetBSD: return_one.S,v 1.2 2018/01/14 19:59:51 martin Exp $ */
 
 #include <machine/asm.h>
 
-.globl return_one, return_one_end;
+.global        return_one_end
 
-return_one: return_one_end:
-       nop
+ENTRY(return_one)
+return_one:
+       retl
+        mov 1, %o0
+return_one_end:



Home | Main Index | Thread Index | Old Index