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

Author: Jan Kiszka <jan.kis...@siemens.com>
Date:   Wed Jul  1 21:18:27 2015 +0200

cobalt/kernel: Mark backtrace syscall as lostage

It uses Linux services, thus can't run in primary mode.

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

---

 kernel/cobalt/posix/syscall.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/kernel/cobalt/posix/syscall.c b/kernel/cobalt/posix/syscall.c
index 0f0b3c8..36cfc3b 100644
--- a/kernel/cobalt/posix/syscall.c
+++ b/kernel/cobalt/posix/syscall.c
@@ -191,7 +191,7 @@ static COBALT_SYSCALL(get_current, current,
                                      sizeof(*u_handle));
 }
 
-static COBALT_SYSCALL(backtrace, current,
+static COBALT_SYSCALL(backtrace, lostage,
                      (int nr, unsigned long __user *u_backtrace, int reason))
 {
        unsigned long backtrace[SIGSHADOW_BACKTRACE_DEPTH];
@@ -760,7 +760,7 @@ static const int cobalt_sysmodes[] = {
        __COBALT_MODE(extend, lostage),
        __COBALT_MODE(trace, current),
        __COBALT_MODE(get_current, current),
-       __COBALT_MODE(backtrace, current),
+       __COBALT_MODE(backtrace, lostage),
        __COBALT_MODE(serialdbg, current),
        __COBALT_MODE(corectl, probing),
        __COBALT_MODE(fcntl, current),


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

Reply via email to