Module Name:    src
Committed By:   pooka
Date:           Mon Dec  9 16:27:15 UTC 2013

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

Log Message:
Rump kernels now use sy_invoke(), which initializes the return
value registers, so no need to do it individually in each wrapper.


To generate a diff of this commit:
cvs rdiff -u -r1.134 -r1.135 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.134 src/sys/kern/makesyscalls.sh:1.135
--- src/sys/kern/makesyscalls.sh:1.134	Tue Oct  8 11:47:57 2013
+++ src/sys/kern/makesyscalls.sh	Mon Dec  9 16:27:15 2013
@@ -1,4 +1,4 @@
-#	$NetBSD: makesyscalls.sh,v 1.134 2013/10/08 11:47:57 njoly Exp $
+#	$NetBSD: makesyscalls.sh,v 1.135 2013/12/09 16:27:15 pooka Exp $
 #
 # Copyright (c) 1994, 1996, 2000 Christopher G. Demetriou
 # All rights reserved.
@@ -812,7 +812,7 @@ function putent(type, compatwrap) {
 	}
 	printf("%s %s)\n", uncompattype(argtype[argc]), argname[argc]) \
 	    > rumpcalls
-	printf("{\n\tregister_t retval[2] = {0, 0};\n") > rumpcalls
+	printf("{\n\tregister_t retval[2];\n") > rumpcalls
 	if (returntype != "void") {
 		if (type != "NOERR") {
 			printf("\tint error = 0;\n") > rumpcalls
@@ -938,7 +938,7 @@ END {
 		printf("int rump_sys_pipe(int *);\n") > rumpprotos
 		printf("\nint rump_sys_pipe(int *);\n") > rumpcalls
 		printf("int\nrump_sys_pipe(int *fd)\n{\n") > rumpcalls
-		printf("\tregister_t retval[2] = {0, 0};\n") > rumpcalls
+		printf("\tregister_t retval[2];\n") > rumpcalls
 		printf("\tint error = 0;\n") > rumpcalls
 		printf("\n\terror = rsys_syscall(SYS_pipe, ") > rumpcalls
 		printf("NULL, 0, retval);\n") > rumpcalls

Reply via email to