diff options
author | Neal H. Walfield <neal@gnu.org> | 2007-12-12 16:33:37 +0000 |
---|---|---|
committer | Thomas Schwinge <tschwinge@gnu.org> | 2009-04-07 23:11:19 +0200 |
commit | ac69c45a3eba1973f5682e0c4a11404e00f5485b (patch) | |
tree | bed7c54287c3e17ae89236416f5a46193ec3114b /sysdeps/l4/pt-block.c | |
parent | c4ae63f6c8b068183bbbb9472ac28ba7cf304df1 (diff) |
2007-12-12 Neal H. Walfield <neal@gnu.org>
* sysdeps/l4/pt-block.c (__pthread_block): Clear the acceptor.
Improve debugging output.
* sysdeps/l4/pt-wakeup.c (__pthread_wakeup): Load an empty message.
Improve debugging output.
Diffstat (limited to 'sysdeps/l4/pt-block.c')
-rw-r--r-- | sysdeps/l4/pt-block.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/sysdeps/l4/pt-block.c b/sysdeps/l4/pt-block.c index df3fe85..e92ce91 100644 --- a/sysdeps/l4/pt-block.c +++ b/sysdeps/l4/pt-block.c @@ -27,16 +27,20 @@ void __pthread_block (struct __pthread *thread) { - debug (5, "%x.%x blocking", - l4_thread_no (thread->threadid), l4_version (thread->threadid)); + debug (5, "%x.%x/%x blocking", + l4_thread_no (thread->threadid), l4_version (thread->threadid), + thread->threadid); + l4_accept (L4_UNTYPED_WORDS_ACCEPTOR); l4_msg_tag_t tag = l4_receive (l4_anythread); if (l4_ipc_failed (tag)) { int err = l4_error_code (); - debug (1, "%x.%x failed to block: %s (%d)", + debug (1, "%x.%x failed to block: %d, offset: %x", l4_thread_no (l4_myself ()), l4_version (l4_myself ()), - l4_strerror (err), err); + (l4_error_code () >> 1) & 0x7, + l4_error_code () >> 4); + assert (! l4_ipc_failed (tag)); } else debug (5, "%x.%x unblocked", |