Module Name:    src
Committed By:   jdc
Date:           Mon Jul  2 21:33:00 UTC 2012

Modified Files:
        src/sys/arch/usermode/dev [netbsd-6]: cpu.c

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.69.2.1 -r1.69.2.2 src/sys/arch/usermode/dev/cpu.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/usermode/dev/cpu.c
diff -u src/sys/arch/usermode/dev/cpu.c:1.69.2.1 src/sys/arch/usermode/dev/cpu.c:1.69.2.2
--- src/sys/arch/usermode/dev/cpu.c:1.69.2.1	Wed Mar  7 23:44:24 2012
+++ src/sys/arch/usermode/dev/cpu.c	Mon Jul  2 21:33:00 2012
@@ -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 <[email protected]>
@@ -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 @@ cpu_getmcontext(struct lwp *l, mcontext_
 }
 
 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);

Reply via email to