diff options
author | marcus <marcus> | 2004-04-10 16:51:44 +0000 |
---|---|---|
committer | marcus <marcus> | 2004-04-10 16:51:44 +0000 |
commit | a7b03a6461b660bc3e0f139e434130d211dd0fa9 (patch) | |
tree | 91ceaab159959183434b8a85ccb533996bf3143d /libl4/l4 | |
parent | ba3261561205c487f5a74c705d672a0165cb14da (diff) |
2004-04-10 Marcus Brinkmann <marcus@gnu.org>
* l4/thread.h (_L4_THREAD_VERSION_BITS, _L4_THREAD_NO_BITS,
_L4_anylocalthread): Fix macro.
Diffstat (limited to 'libl4/l4')
-rw-r--r-- | libl4/l4/gnu/thread.h | 4 | ||||
-rw-r--r-- | libl4/l4/thread.h | 9 |
2 files changed, 7 insertions, 6 deletions
diff --git a/libl4/l4/gnu/thread.h b/libl4/l4/gnu/thread.h index cac613f..202b108 100644 --- a/libl4/l4/gnu/thread.h +++ b/libl4/l4/gnu/thread.h @@ -29,8 +29,8 @@ #define l4_anythread _L4_anythread #define l4_anylocalthread _L4_anylocalthread -/* The theoretical maximum number of thread no bits. The practical - limit is l4_thread_id_bits(). */ +/* The theoretical maximum number of thread no bits. The real limit + is l4_thread_id_bits(). */ #define L4_THREAD_NO_BITS _L4_THREAD_NO_BITS #define L4_THREAD_VERSION_BITS _L4_THREAD_VERSION_BITS diff --git a/libl4/l4/thread.h b/libl4/l4/thread.h index fe19816..5be883a 100644 --- a/libl4/l4/thread.h +++ b/libl4/l4/thread.h @@ -44,11 +44,12 @@ typedef _L4_RAW #if _L4_WORDSIZE == 32 -#define _L4_THREAD_NO_BITS (32 - 6) +#define _L4_THREAD_VERSION_BITS (14) +#define _L4_THREAD_NO_BITS (32 - _L4_THREAD_VERSION_BITS) #else -#define _L4_THREAD_NO_BITS (64 - 6) +#define _L4_THREAD_VERSION_BITS (32) +#define _L4_THREAD_NO_BITS (64 - _L4_THREAD_VERSION_BITS) #endif -#define _L4_THREAD_VERSION_BITS (6) #define _L4_THREAD_NO_MASK ((_L4_WORD_C(1) << _L4_THREAD_NO_BITS) - 1) #define _L4_THREAD_VERSION_MASK ((_L4_WORD_C(1) << _L4_THREAD_VERSION_BITS) -1) @@ -56,7 +57,7 @@ typedef _L4_RAW /* These define the raw versions of the special thread IDs. */ #define _L4_nilthread _L4_WORD_C(0) #define _L4_anythread (~ _L4_WORD_C(0)) -#define _L4_anylocalthread ((~ _L4_WORD_C(0)) << _L4_THREAD_VERSION_BITS) +#define _L4_anylocalthread ((~ _L4_WORD_C(0)) << 6) static inline _L4_thread_id_t |