All sparc64 CPUs support per page execute protection.
This commit is contained in:
parent
4e631407ca
commit
a6d52bb10f
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue