summaryrefslogtreecommitdiff
path: root/libhurd-mm/exceptions.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 /libhurd-mm/exceptions.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 'libhurd-mm/exceptions.c')
-rw-r--r--libhurd-mm/exceptions.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/libhurd-mm/exceptions.c b/libhurd-mm/exceptions.c
index 3135b29..65664e4 100644
--- a/libhurd-mm/exceptions.c
+++ b/libhurd-mm/exceptions.c
@@ -71,9 +71,9 @@ exception_frame_slab_alloc (void *hook, size_t size, void **ptr)
struct exception_frame frame;
utcb_state_save (&frame);
- struct storage storage = storage_alloc (meta_data_activity,
- cap_page, STORAGE_EPHEMERAL,
- ADDR_VOID);
+ struct storage storage = storage_alloc (meta_data_activity,
+ cap_page, STORAGE_EPHEMERAL,
+ OBJECT_POLICY_DEFAULT, ADDR_VOID);
*ptr = ADDR_TO_PTR (addr_extend (storage.addr, 0, PAGESIZE_LOG2));
utcb_state_restore (&frame);
@@ -317,7 +317,8 @@ exception_handler_init (void)
extern struct hurd_startup_data *__hurd_startup_data;
struct storage storage = storage_alloc (ADDR_VOID, cap_page,
- STORAGE_LONG_LIVED, ADDR_VOID);
+ STORAGE_LONG_LIVED,
+ OBJECT_POLICY_DEFAULT, ADDR_VOID);
if (ADDR_IS_VOID (storage.addr))
panic ("Failed to allocate page for exception state");