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

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 df9a85e..12df1c0 100644
--- a/include/cobalt/kernel/tree.h
+++ b/include/cobalt/kernel/tree.h
@@ -24,7 +24,7 @@
 #include <cobalt/kernel/assert.h>
 
 struct xnid {
-       unsigned long id;
+       unsigned long long id;
        struct rb_node link;
 };
 
@@ -36,15 +36,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