Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/sys Add a comment for a kludge keeping sbrk working on m...



details:   https://anonhg.NetBSD.org/src/rev/2470bc126411
branches:  trunk
changeset: 787605:2470bc126411
user:      matt <matt%NetBSD.org@localhost>
date:      Wed Jun 26 08:30:40 2013 +0000

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

diffstat:

 sys/sys/syscallvar.h |  8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diffs (23 lines):

diff -r 658421e2b269 -r 2470bc126411 sys/sys/syscallvar.h
--- a/sys/sys/syscallvar.h      Wed Jun 26 06:31:53 2013 +0000
+++ b/sys/sys/syscallvar.h      Wed Jun 26 08:30:40 2013 +0000
@@ -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 @@
             || __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);
         }       
         



Home | Main Index | Thread Index | Old Index