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

Author: Gilles Chanteperdrix <gilles.chanteperd...@xenomai.org>
Date:   Sun Jan 26 18:58:21 2014 +0100

cobalt/xnid: use 64 bits ids

---

 include/cobalt/kernel/tree.h |    8 ++++----
 kernel/cobalt/tree.c         |    2 +-
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/include/cobalt/kernel/tree.h b/include/cobalt/kernel/tree.h
index 993d907..f23278a 100644
--- a/include/cobalt/kernel/tree.h
+++ b/include/cobalt/kernel/tree.h
@@ -23,7 +23,7 @@
 #include <cobalt/kernel/assert.h>
 
 struct xnid {
-       unsigned long id;
+       unsigned long long id;
        struct rb_node link;
 };
 
@@ -35,15 +35,15 @@ static inline void xntree_init(struct rb_root *t)
 void xntree_cleanup(struct rb_root *t, void *cookie,
                void (*destroy)(void *cookie, struct xnid *id));
 
-int xnid_enter(struct rb_root *t, struct xnid *xnid, unsigned long id);
+int xnid_enter(struct rb_root *t, struct xnid *xnid, unsigned long long id);
 
-static inline unsigned long xnid_id(struct xnid *i)
+static inline unsigned long long xnid_id(struct xnid *i)
 {
        return i->id;
 }
 
 static inline
-struct xnid *xnid_fetch(struct rb_root *t, unsigned long id)
+struct xnid *xnid_fetch(struct rb_root *t, unsigned long long id)
 {
        struct rb_node *node = t->rb_node;
 
diff --git a/kernel/cobalt/tree.c b/kernel/cobalt/tree.c
index 1e40183..a84179b 100644
--- a/kernel/cobalt/tree.c
+++ b/kernel/cobalt/tree.c
@@ -34,7 +34,7 @@ void xntree_cleanup(struct rb_root *t, void *cookie,
        }
 }
 
-int xnid_enter(struct rb_root *t, struct xnid *xnid, unsigned long id)
+int xnid_enter(struct rb_root *t, struct xnid *xnid, unsigned long long id)
 {
        struct rb_node **new = &t->rb_node, *parent = NULL;
 


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

Reply via email to