Module Name:    src
Committed By:   pooka
Date:           Thu Nov 26 16:34:24 UTC 2009

Modified Files:
        src/sys/kern: makesyscalls.sh

Log Message:
Instead of a single register_t as the retval of rump syscalls,
use an array of two.  No functional change ... yet.


To generate a diff of this commit:
cvs rdiff -u -r1.88 -r1.89 src/sys/kern/makesyscalls.sh

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

Modified files:

Index: src/sys/kern/makesyscalls.sh
diff -u src/sys/kern/makesyscalls.sh:1.88 src/sys/kern/makesyscalls.sh:1.89
--- src/sys/kern/makesyscalls.sh:1.88	Tue Oct 13 21:54:29 2009
+++ src/sys/kern/makesyscalls.sh	Thu Nov 26 16:34:24 2009
@@ -1,5 +1,5 @@
 #! /bin/sh -
-#	$NetBSD: makesyscalls.sh,v 1.88 2009/10/13 21:54:29 pooka Exp $
+#	$NetBSD: makesyscalls.sh,v 1.89 2009/11/26 16:34:24 pooka Exp $
 #
 # Copyright (c) 1994, 1996, 2000 Christopher G. Demetriou
 # All rights reserved.
@@ -622,7 +622,8 @@
 			printf("%s %s, ", argtype[i], argname[i]) > rumpcalls
 	}
 	printf("%s %s)\n", argtype[argc], argname[argc]) > rumpcalls
-	printf("{\n\tregister_t retval = 0;\n\tint error = 0;\n") > rumpcalls
+	printf("{\n\tregister_t rval[2] = {0, 0};\n\tint error = 0;\n") \
+	    > rumpcalls
 
 	argarg = "NULL"
 	argsize = 0;
@@ -645,12 +646,12 @@
 		printf("\n") > rumpcalls
 	}
 	printf("\terror = rump_sysproxy(%s%s, rump_sysproxy_arg,\n\t" \
-	    "    (uint8_t *)%s, %s, &retval);\n", constprefix, funcalias, \
+	    "    (uint8_t *)%s, %s, rval);\n", constprefix, funcalias, \
 	    argarg, argsize) > rumpcalls
-	printf("\tif (error) {\n\t\tretval = -1;\n") > rumpcalls
+	printf("\tif (error) {\n\t\trval[0] = -1;\n") > rumpcalls
 	if (returntype != "void") {
 		printf("\t\trumpuser_seterrno(error);\n\t}\n") > rumpcalls
-		printf("\treturn retval;\n") > rumpcalls
+		printf("\treturn rval[0];\n") > rumpcalls
 	} else {
 		printf("\t}\n") > rumpcalls
 	}

Reply via email to