summaryrefslogtreecommitdiff
path: root/ruth/ruth.c
diff options
context:
space:
mode:
authorneal <neal>2008-02-13 14:33:25 +0000
committerneal <neal>2008-02-13 14:33:25 +0000
commit2c6d94ff01c2674c9708fc866b3a2e4103910d77 (patch)
tree2f5acf4862a97bd1b1bd8e9ed64a4f939d77d2ac /ruth/ruth.c
parenta1b2f4cc72e191b7686e7cdec7ebd9b2fee92c20 (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 'ruth/ruth.c')
-rw-r--r--ruth/ruth.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/ruth/ruth.c b/ruth/ruth.c
index c44e544..08c9b3e 100644
--- a/ruth/ruth.c
+++ b/ruth/ruth.c
@@ -171,7 +171,8 @@ main (int argc, char *argv[])
assert (! err);
struct storage shadow_storage
- = storage_alloc (activity, cap_page, STORAGE_EPHEMERAL, ADDR_VOID);
+ = storage_alloc (activity, cap_page, STORAGE_EPHEMERAL,
+ OBJECT_POLICY_DEFAULT, ADDR_VOID);
struct object *shadow = ADDR_TO_PTR (addr_extend (shadow_storage.addr,
0, PAGESIZE_LOG2));
cap_set_shadow (slot, shadow);
@@ -231,6 +232,7 @@ main (int argc, char *argv[])
(i & 1) == 0
? STORAGE_LONG_LIVED
: STORAGE_EPHEMERAL,
+ OBJECT_POLICY_DEFAULT,
ADDR_VOID).addr;
assert (! ADDR_IS_VOID (storage[i]));
* (int *) (ADDR_TO_PTR (addr_extend (storage[i], 0, PAGESIZE_LOG2)))
@@ -292,7 +294,7 @@ main (int argc, char *argv[])
addr_t thread = capalloc ();
debug (5, "thread: " ADDR_FMT, ADDR_PRINTF (thread));
addr_t storage = storage_alloc (activity, cap_thread, STORAGE_LONG_LIVED,
- thread).addr;
+ OBJECT_POLICY_DEFAULT, thread).addr;
struct hurd_thread_exregs_in in;
@@ -489,7 +491,8 @@ main (int argc, char *argv[])
addr_t a = capalloc ();
addr_t storage = storage_alloc (activity, cap_activity_control,
- STORAGE_LONG_LIVED, a).addr;
+ STORAGE_LONG_LIVED, OBJECT_POLICY_DEFAULT,
+ a).addr;
addr_t weak = capalloc ();
error_t err = rm_cap_copy (activity, ADDR_VOID, weak, ADDR_VOID, a,
@@ -633,6 +636,7 @@ main (int argc, char *argv[])
struct storage storage = storage_alloc (activity, cap_page,
STORAGE_MEDIUM_LIVED,
+ OBJECT_POLICY_DEFAULT,
ADDR_VOID);
assert (! ADDR_IS_VOID (storage.addr));
@@ -684,6 +688,7 @@ main (int argc, char *argv[])
addr_t storage = storage_alloc (activity, cap_page,
STORAGE_MEDIUM_LIVED,
+ OBJECT_POLICY_DEFAULT,
addr).addr;
assert (! ADDR_IS_VOID (storage));