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/sparc64 All sparc64 CPUs support per pag...
details: https://anonhg.NetBSD.org/src/rev/5cdd49e9ec01
branches: trunk
changeset: 820134:5cdd49e9ec01
user: martin <martin%NetBSD.org@localhost>
date: Sat Dec 31 11:51:20 2016 +0000
description:
All sparc64 CPUs support per page execute protection.
diffstat:
tests/lib/libc/arch/sparc64/exec_prot_support.c | 7 ++++---
tests/lib/libc/arch/sparc64/return_one.S | 11 +++++++----
2 files changed, 11 insertions(+), 7 deletions(-)
diffs (44 lines):
diff -r 028a62d6e6e9 -r 5cdd49e9ec01 tests/lib/libc/arch/sparc64/exec_prot_support.c
--- a/tests/lib/libc/arch/sparc64/exec_prot_support.c Sat Dec 31 10:13:15 2016 +0000
+++ b/tests/lib/libc/arch/sparc64/exec_prot_support.c Sat Dec 31 11:51:20 2016 +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 2016/12/31 11:51:20 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 2016/12/31 11:51:20 martin Exp $");
#include "../../common/exec_prot.h"
int
exec_prot_support(void)
{
- return NOTIMPL;
+
+ return PERPAGE_XP;
}
diff -r 028a62d6e6e9 -r 5cdd49e9ec01 tests/lib/libc/arch/sparc64/return_one.S
--- a/tests/lib/libc/arch/sparc64/return_one.S Sat Dec 31 10:13:15 2016 +0000
+++ b/tests/lib/libc/arch/sparc64/return_one.S Sat Dec 31 11:51:20 2016 +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 2016/12/31 11:51:20 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