]> rtime.felk.cvut.cz Git - l4.git/blobdiff - l4/pkg/uclibc/lib/libpthread/src/internals.h
update
[l4.git] / l4 / pkg / uclibc / lib / libpthread / src / internals.h
index 92b8b937d2a2a95fba848967e3ff76485203a540..f8d242c51a39ded8edf53b5323b1b5229167d03a 100644 (file)
@@ -72,7 +72,7 @@ struct pthread_key_struct {
 };
 
 #include <l4/sys/kdebug.h>
-#define UNIMPL(x...) do { outstring("UNIMPL\n"); /*printf("UNIMPLEMENTED:%s:%s %s:", __FILE__, __LINE__, __func__);*/ }while(0)
+#define UNIMPL(x...) do { outstring("UNIMPL: " x "\n"); } while(0)
 
 
 #define PTHREAD_START_ARGS_INITIALIZER(fct) \
@@ -156,9 +156,10 @@ inline static void __pthread_send_manager_rq(struct pthread_request *r, int bloc
   if (l4_is_invalid_cap(__pthread_manager_request))
     return;
   __builtin_memcpy(l4_utcb_mr()->mr, r, sizeof(struct pthread_request));
-  l4_msgtag_t tag = l4_msgtag(0, 
-      (sizeof(struct pthread_request) + sizeof(l4_umword_t) - 1) / sizeof(l4_umword_t),
-      0, 0);
+  l4_msgtag_t tag
+    = l4_msgtag(0,
+                (sizeof(struct pthread_request) + sizeof(l4_umword_t) - 1) / sizeof(l4_umword_t),
+                0, L4_MSGTAG_SCHEDULE);
   if (block)
     l4_ipc_call(__pthread_manager_request, l4_utcb(), tag, L4_IPC_NEVER);
   else
@@ -284,6 +285,7 @@ extern int __librt_multiple_threads;
 /* Internal global functions */
 __BEGIN_DECLS
 extern int __pthread_l4_initialize_main_thread(pthread_descr th) attribute_hidden;
+extern void __l4_add_utcbs(l4_addr_t start, l4_addr_t utcbs_end);
 
 
 extern int __pthread_sched_idle_prio;