diff options
author | Neal H. Walfield <neal@gnu.org> | 2008-02-13 14:33:26 +0000 |
---|---|---|
committer | Thomas Schwinge <tschwinge@gnu.org> | 2009-04-07 23:14:01 +0200 |
commit | 53d1f64bb06284e7d458df71bb52c6965bb2a016 (patch) | |
tree | 7c55f88135b60dd06e4935df8008fe25c2ca9809 | |
parent | 0c44c267ed37d9bb1c3c1343e1e651e90ef23e7b (diff) |
libhurd-mm/
2008-02-13 Neal H. Walfield <neal@gnu.org>
* storage.h (storage_alloc): Take additional parameter policy.
Update callers.
* storage.c (storage_alloc): Take additional parameter policy.
Use it when allocating the object and updating the shadow
capability slots.
libpthread/
2008-02-13 Neal H. Walfield <neal@gnu.org>
* sysdeps/l4/hurd/pt-thread-alloc.c (__pthread_thread_alloc):
Update use of storage_alloc to be consistent with new API.
newlib/
2008-02-13 Neal H. Walfield <neal@gnu.org>
* addon/newlib/libc/sys/hurd/getreent.c (slab_alloc): Update use
of storage_alloc to be consistent with new API.
ruth/
2008-02-13 Neal H. Walfield <neal@gnu.org>
* ruth.c (main): Update use of storage_alloc to be consistent with
new API.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | sysdeps/l4/hurd/pt-thread-alloc.c | 8 |
2 files changed, 10 insertions, 3 deletions
@@ -1,5 +1,10 @@ 2008-02-13 Neal H. Walfield <neal@gnu.org> + * sysdeps/l4/hurd/pt-thread-alloc.c (__pthread_thread_alloc): + Update use of storage_alloc to be consistent with new API. + +2008-02-13 Neal H. Walfield <neal@gnu.org> + * sysdeps/l4/hurd/pt-sysdep.c (_pthread_init_routine): Change function signature to take a function pointer and an argument and to not return. diff --git a/sysdeps/l4/hurd/pt-thread-alloc.c b/sysdeps/l4/hurd/pt-thread-alloc.c index 9e2bc2a..daa13db 100644 --- a/sysdeps/l4/hurd/pt-thread-alloc.c +++ b/sysdeps/l4/hurd/pt-thread-alloc.c @@ -1,5 +1,5 @@ /* Allocate kernel thread. Hurd/L4 version. - Copyright (C) 2007 Free Software Foundation, Inc. + Copyright (C) 2007, 2008 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -51,7 +51,8 @@ __pthread_thread_alloc (struct __pthread *thread) running and it accesses its stack, it will fault, which we naturally cannot handle. */ storage = storage_alloc (ADDR_VOID, cap_page, - STORAGE_UNKNOWN, ADDR_VOID); + STORAGE_UNKNOWN, OBJECT_POLICY_DEFAULT, + ADDR_VOID); if (ADDR_IS_VOID (storage.addr)) return EAGAIN; @@ -60,7 +61,8 @@ __pthread_thread_alloc (struct __pthread *thread) storage = storage_alloc (meta_data_activity, cap_thread, /* Threads are rarely shortly lived. */ - STORAGE_MEDIUM_LIVED, ADDR_VOID); + STORAGE_MEDIUM_LIVED, OBJECT_POLICY_DEFAULT, + ADDR_VOID); if (ADDR_IS_VOID (storage.addr)) { storage_free (thread->exception_page.addr, false); |