diff options
author | neal <neal> | 2008-02-13 14:33:25 +0000 |
---|---|---|
committer | neal <neal> | 2008-02-13 14:33:25 +0000 |
commit | 2c6d94ff01c2674c9708fc866b3a2e4103910d77 (patch) | |
tree | 2f5acf4862a97bd1b1bd8e9ed64a4f939d77d2ac /libhurd-mm/storage.h | |
parent | a1b2f4cc72e191b7686e7cdec7ebd9b2fee92c20 (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.
Diffstat (limited to 'libhurd-mm/storage.h')
-rw-r--r-- | libhurd-mm/storage.h | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/libhurd-mm/storage.h b/libhurd-mm/storage.h index 3f390a8..fffadea 100644 --- a/libhurd-mm/storage.h +++ b/libhurd-mm/storage.h @@ -61,15 +61,18 @@ struct storage caller wants to use the allocated object for address translation, the caller must allocate the shadow object. If not, functions including the cap_lookup family will fail. */ -extern struct storage storage_alloc_ (addr_t activity, - enum cap_type type, - enum storage_expectancy expectancy, - addr_t addr); -#define storage_alloc(__sa_activity, __sa_type, __sa_expectancy, __sa_addr) \ +extern struct storage storage_alloc (addr_t activity, + enum cap_type type, + enum storage_expectancy expectancy, + struct object_policy policy, + addr_t addr); +#define storage_alloc(__sa_activity, __sa_type, __sa_expectancy, \ + __sa_policy, __sa_addr) \ ({ \ struct storage __sa_storage; \ - __sa_storage = storage_alloc_ (__sa_activity, __sa_type, \ - __sa_expectancy, __sa_addr); \ + __sa_storage = storage_alloc (__sa_activity, __sa_type, \ + __sa_expectancy, __sa_policy, \ + __sa_addr); \ debug (5, "storage_alloc (%s, " ADDR_FMT ") -> " ADDR_FMT, \ cap_type_string (__sa_type), ADDR_PRINTF (__sa_addr), \ ADDR_PRINTF (__sa_storage.addr)); \ |