Source-Changes-HG archive

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

[src/trunk]: src/sys/kern put linux_handler_t in the right place.



details:   https://anonhg.NetBSD.org/src/rev/f6b4efa32b6a
branches:  trunk
changeset: 820801:f6b4efa32b6a
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Jan 15 17:00:59 2017 +0000

description:
put linux_handler_t in the right place.

diffstat:

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

diffs (24 lines):

diff -r 09927f61b89b -r f6b4efa32b6a sys/kern/makesyscalls.sh
--- a/sys/kern/makesyscalls.sh  Sun Jan 15 17:00:37 2017 +0000
+++ b/sys/kern/makesyscalls.sh  Sun Jan 15 17:00:59 2017 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: makesyscalls.sh,v 1.167 2017/01/15 15:18:52 christos Exp $
+#      $NetBSD: makesyscalls.sh,v 1.168 2017/01/15 17:00:59 christos Exp $
 #
 # Copyright (c) 1994, 1996, 2000 Christopher G. Demetriou
 # All rights reserved.
@@ -799,11 +799,12 @@
                        sub("__restrict$", "", arg)
                        printf("\t\tcase %d:\n\t\t\tp = \"%s\";\n\t\t\tbreak;\n", i - 1, arg) > systracetmp
                        if (arg ~ /.*p_t$/ || arg ~ /.*p$/ || arg ~ /.*_t_p$/ ||
-                           arg ~ /.*_pointer_t$/ || arg ~ /.*_handler_t$/)
+                           arg ~ /.*_pointer_t$/)
                                printf("\t\tuarg[%d] = (intptr_t) SCARG(p, %s).i32; /* %s */\n", \
                                     i - 1, \
                                     argname[i], arg) > systrace
-                       else if (index(arg, "*") > 0 || arg == "caddr_t")
+                       else if (index(arg, "*") > 0 || arg == "caddr_t" ||
+                           arg ~ /.*_handler_t$/)
                                printf("\t\tuarg[%d] = (intptr_t) SCARG(p, %s); /* %s */\n", \
                                     i - 1, \
                                     argname[i], arg) > systrace



Home | Main Index | Thread Index | Old Index