Module Name:    src
Committed By:   matt
Date:           Wed Jun 26 08:30:40 UTC 2013

Modified Files:
        src/sys/sys: syscallvar.h

Log Message:
Add a comment for a kludge keeping sbrk working on mips.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/sys/sys/syscallvar.h

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

Modified files:

Index: src/sys/sys/syscallvar.h
diff -u src/sys/sys/syscallvar.h:1.6 src/sys/sys/syscallvar.h:1.7
--- src/sys/sys/syscallvar.h:1.6	Tue Jun 25 17:38:06 2013
+++ src/sys/sys/syscallvar.h	Wed Jun 26 08:30:40 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: syscallvar.h,v 1.6 2013/06/25 17:38:06 matt Exp $	*/
+/*	$NetBSD: syscallvar.h,v 1.7 2013/06/26 08:30:40 matt Exp $	*/
 
 /*-
  * Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -74,7 +74,13 @@ sy_invoke(const struct sysent *sy, struc
             || __predict_false(sy->sy_flags & SYCALL_INDIRECT)
             || (error = trace_enter(code, uap, sy->sy_narg)) == 0) {
                 rval[0] = 0;
+#if !defined(__mips__)
+		/*
+		 * Due to the mips userland code for SYS_break needing v1 to be
+		 * preserved, we can't clear this on mips. 
+		 */
                 rval[1] = 0;
+#endif
                 error = sy_call(sy, l, uap, rval);
         }       
         

Reply via email to