Source-Changes-HG archive

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

[src/trunk]: src/sys/kern Rump kernels now use sy_invoke(), which initializes...



details:   https://anonhg.NetBSD.org/src/rev/ea8ca0cc3956
branches:  trunk
changeset: 791897:ea8ca0cc3956
user:      pooka <pooka%NetBSD.org@localhost>
date:      Mon Dec 09 16:27:15 2013 +0000

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

diffstat:

 sys/kern/makesyscalls.sh |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 5e2043ae41a3 -r ea8ca0cc3956 sys/kern/makesyscalls.sh
--- a/sys/kern/makesyscalls.sh  Mon Dec 09 16:23:10 2013 +0000
+++ b/sys/kern/makesyscalls.sh  Mon Dec 09 16:27:15 2013 +0000
@@ -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 @@
        }
        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 @@
                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



Home | Main Index | Thread Index | Old Index