Module: xenomai-jki
Branch: for-forge
Commit: 62f95e41a1e7f7dfc8b4b38095d48a6e60c0c9dd
URL:    
http://git.xenomai.org/?p=xenomai-jki.git;a=commit;h=62f95e41a1e7f7dfc8b4b38095d48a6e60c0c9dd

Author: Jan Kiszka <jan.kis...@siemens.com>
Date:   Tue Mar  7 18:30:22 2017 +0100

kernel/cobalt/posix: Pass compat information to signal_copyinfo extension

Required for compat-capable implementations of this extension.

Signed-off-by: Jan Kiszka <jan.kis...@siemens.com>

---

 kernel/cobalt/posix/extension.h |    3 ++-
 kernel/cobalt/posix/signal.c    |    2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/kernel/cobalt/posix/extension.h b/kernel/cobalt/posix/extension.h
index b831a3a..2bef67a 100644
--- a/kernel/cobalt/posix/extension.h
+++ b/kernel/cobalt/posix/extension.h
@@ -53,7 +53,8 @@ struct cobalt_extension {
                int (*signal_copyinfo)(struct cobalt_extref *refthread,
                                       void __user *u_si,
                                       const struct siginfo *si,
-                                      int overrun);
+                                      int overrun,
+                                      bool compat);
                int (*sched_yield)(struct cobalt_extref *curref);
                int (*thread_setsched)(struct cobalt_extref *refthread, /* 
nklocked, IRQs off. */
                                       struct xnsched_class *sched_class,
diff --git a/kernel/cobalt/posix/signal.c b/kernel/cobalt/posix/signal.c
index 11e128f..54ae548 100644
--- a/kernel/cobalt/posix/signal.c
+++ b/kernel/cobalt/posix/signal.c
@@ -350,7 +350,7 @@ done:
 
        /* Allow an extended target to receive more data. */
        cobalt_call_extension(signal_copyinfo, &curr->extref,
-                             ret, u_si, sip, overrun);
+                             ret, u_si, sip, overrun, compat);
 out:
        /*
         * If we pulled the signal information from a sigpending


_______________________________________________
Xenomai-git mailing list
Xenomai-git@xenomai.org
https://xenomai.org/mailman/listinfo/xenomai-git

Reply via email to