diff options
author | Neal H. Walfield <neal@gnu.org> | 2008-12-17 18:45:14 +0100 |
---|---|---|
committer | Neal H. Walfield <neal@gnu.org> | 2008-12-17 18:45:14 +0100 |
commit | 4b34130b861911b2fbc62e706239d55ce817d203 (patch) | |
tree | 0fb7f4a87b0813e7884b86b7a0a7390265083a2d /libpthread/sysdeps/viengoos/pt-thread-alloc.c | |
parent | a7416b7c63f4954ff78eecf31e5146cb86cda6a6 (diff) |
Add a "vg_" to public viengoos identifiers.
2008-12-17 Neal H. Walfield <neal@gnu.org>
* viengoos/activity.h: Add a "vg_" to public viengoos identifiers.
Update users.
* viengoos/addr-trans.h: Likewise.
* viengoos/addr.h: Likewise.
* viengoos/cap.h: Likewise.
* viengoos/folio.h: Likewise.
* viengoos/futex.h: Likewise.
* viengoos/rpc.h: Likewise.
* viengoos/thread.h: Likewise.
Diffstat (limited to 'libpthread/sysdeps/viengoos/pt-thread-alloc.c')
-rw-r--r-- | libpthread/sysdeps/viengoos/pt-thread-alloc.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/libpthread/sysdeps/viengoos/pt-thread-alloc.c b/libpthread/sysdeps/viengoos/pt-thread-alloc.c index 3c7df34..a65024f 100644 --- a/libpthread/sysdeps/viengoos/pt-thread-alloc.c +++ b/libpthread/sysdeps/viengoos/pt-thread-alloc.c @@ -31,7 +31,7 @@ extern struct hurd_startup_data *__hurd_startup_data; -extern addr_t meta_data_activity; +extern vg_addr_t meta_data_activity; int __pthread_thread_alloc (struct __pthread *thread) @@ -58,11 +58,11 @@ __pthread_thread_alloc (struct __pthread *thread) else { struct storage storage; - storage = storage_alloc (meta_data_activity, cap_thread, + storage = storage_alloc (meta_data_activity, vg_cap_thread, /* Threads are rarely shortly lived. */ - STORAGE_MEDIUM_LIVED, OBJECT_POLICY_DEFAULT, - ADDR_VOID); - if (ADDR_IS_VOID (storage.addr)) + STORAGE_MEDIUM_LIVED, VG_OBJECT_POLICY_DEFAULT, + VG_ADDR_VOID); + if (VG_ADDR_IS_VOID (storage.addr)) { debug (0, DEBUG_BOLD ("Out of memory")); return EAGAIN; @@ -75,20 +75,20 @@ __pthread_thread_alloc (struct __pthread *thread) if (unlikely (err)) panic ("Failed to initialize thread's activation state: %d", err); - err = rm_cap_copy (ADDR_VOID, + err = rm_cap_copy (VG_ADDR_VOID, thread->lock_message_buffer->receiver, - ADDR (VG_MESSENGER_THREAD_SLOT, + VG_ADDR (VG_MESSENGER_THREAD_SLOT, VG_MESSENGER_SLOTS_LOG2), - ADDR_VOID, thread->object, - 0, CAP_PROPERTIES_DEFAULT); + VG_ADDR_VOID, thread->object, + 0, VG_CAP_PROPERTIES_DEFAULT); if (err) panic ("Failed to set lock messenger's thread"); /* Unblock the lock messenger. */ err = vg_ipc (VG_IPC_RECEIVE | VG_IPC_RECEIVE_ACTIVATE | VG_IPC_RETURN, - ADDR_VOID, thread->lock_message_buffer->receiver, ADDR_VOID, - ADDR_VOID, ADDR_VOID, ADDR_VOID, ADDR_VOID); + VG_ADDR_VOID, thread->lock_message_buffer->receiver, VG_ADDR_VOID, + VG_ADDR_VOID, VG_ADDR_VOID, VG_ADDR_VOID, VG_ADDR_VOID); if (err) panic ("Failed to unblock messenger's thread"); } |