Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-6]: src/sys/arch/usermode/dev Pull up revision 1.71 (requested by...
details: https://anonhg.NetBSD.org/src/rev/869c3b79ceeb
branches: netbsd-6
changeset: 774283:869c3b79ceeb
user: jdc <jdc%NetBSD.org@localhost>
date: Mon Jul 02 21:33:00 2012 +0000
description:
Pull up revision 1.71 (requested by reinoud in ticket #377).
Implement dummy `cpu_mcontext_validate' to make it compile again. This
function needs to be implemented in the target secton one day for extra
security.
diffstat:
sys/arch/usermode/dev/cpu.c | 14 ++++++++++++--
1 files changed, 12 insertions(+), 2 deletions(-)
diffs (35 lines):
diff -r d5d040f59044 -r 869c3b79ceeb sys/arch/usermode/dev/cpu.c
--- a/sys/arch/usermode/dev/cpu.c Mon Jul 02 21:28:08 2012 +0000
+++ b/sys/arch/usermode/dev/cpu.c Mon Jul 02 21:33:00 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cpu.c,v 1.69.2.1 2012/03/07 23:44:24 riz Exp $ */
+/* $NetBSD: cpu.c,v 1.69.2.2 2012/07/02 21:33:00 jdc Exp $ */
/*-
* Copyright (c) 2007 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -30,7 +30,7 @@
#include "opt_hz.h"
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.69.2.1 2012/03/07 23:44:24 riz Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.69.2.2 2012/07/02 21:33:00 jdc Exp $");
#include <sys/param.h>
#include <sys/conf.h>
@@ -286,6 +286,16 @@
}
int
+cpu_mcontext_validate(struct lwp *l, const mcontext_t *mcp)
+{
+ /*
+ * can we check here? or should that be done in the target
+ * specific places?
+ */
+ return 0;
+}
+
+int
cpu_setmcontext(struct lwp *l, const mcontext_t *mcp, unsigned int flags)
{
struct pcb *pcb = lwp_getpcb(l);
- Prev by Date:
[src/netbsd-6]: src/etc Pull up revision 1.9 (requested by jnemeth in ticket ...
- Next by Date:
[src/netbsd-6]: src/doc Tickets 286, 363, 366, 370, 372, 373, 374, 375, 376, ...
- Previous by Thread:
[src/netbsd-6]: src/etc Pull up revision 1.9 (requested by jnemeth in ticket ...
- Next by Thread:
[src/netbsd-6]: src/doc Tickets 286, 363, 366, 370, 372, 373, 374, 375, 376, ...
- Indexes:
Home |
Main Index |
Thread Index |
Old Index