Module: xenomai-forge
Branch: master
Commit: 85344786751ddc554526acf49c47e15a9ff43bfa
URL:    
http://git.xenomai.org/?p=xenomai-forge.git;a=commit;h=85344786751ddc554526acf49c47e15a9ff43bfa

Author: Philippe Gerum <r...@xenomai.org>
Date:   Wed Jan  1 16:59:09 2014 +0100

psos: core priority level must be signed integer

---

 include/psos/psos.h |    5 +++--
 lib/psos/task.c     |    4 +---
 2 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/include/psos/psos.h b/include/psos/psos.h
index 38bc45f..4f9d7de 100644
--- a/include/psos/psos.h
+++ b/include/psos/psos.h
@@ -365,8 +365,9 @@ u_long tm_wkwhen(u_long date,
                 u_long time,
                 u_long ticks);
 
-int psos_task_normalize_priority(unsigned long psos_prio);
-int psos_task_denormalize_priority(unsigned long core_prio);
+int psos_task_normalize_priority(u_long psos_prio);
+
+u_long psos_task_denormalize_priority(int core_prio);
 
 extern unsigned int psos_long_names;
 
diff --git a/lib/psos/task.c b/lib/psos/task.c
index ac07b47..9112517 100644
--- a/lib/psos/task.c
+++ b/lib/psos/task.c
@@ -242,15 +242,13 @@ int psos_task_normalize_priority(unsigned long psos_prio)
  * calls are weak and application code may be override the call
  * and implement the mapping differently.
  */
-
 __attribute__ ((weak))
-int psos_task_denormalize_priority(unsigned long core_prio)
+unsigned long psos_task_denormalize_priority(int core_prio)
 {
        /* Map a SCHED_RT priority level to a pSOS one. */
        return core_prio;
 }
 
-
 static int check_task_priority(u_long psos_prio, int *core_prio)
 {
        if (psos_prio < 1 || psos_prio > 255) /* In theory. */


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

Reply via email to