diff options
author | Neal H. Walfield <neal@gnu.org> | 2008-12-18 16:26:15 +0100 |
---|---|---|
committer | Neal H. Walfield <neal@gnu.org> | 2008-12-18 16:26:15 +0100 |
commit | 21b900f421e258eb8c4f293de45cd88ce638456e (patch) | |
tree | a6e51c2898db07497248ff763cf521232a58d152 | |
parent | 6f0b7fbc7f1b98dbce6621c93bdc72564274a089 (diff) |
Fix address computation error.
2008-12-18 Neal H. Walfield <neal@gnu.org>
* exceptions.c (hurd_activation_state_alloc): Cast UTCB to a void *.
-rw-r--r-- | libhurd-mm/ChangeLog | 4 | ||||
-rw-r--r-- | libhurd-mm/exceptions.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/libhurd-mm/ChangeLog b/libhurd-mm/ChangeLog index 1a71d3e..a74f7d7 100644 --- a/libhurd-mm/ChangeLog +++ b/libhurd-mm/ChangeLog @@ -1,5 +1,9 @@ 2008-12-18 Neal H. Walfield <neal@gnu.org> + * exceptions.c (hurd_activation_state_alloc): Cast UTCB to a void *. + +2008-12-18 Neal H. Walfield <neal@gnu.org> + * storage.c (struct storage_desc): Add field owner. (shadow_setup): Set DESC->OWNER appropriately. (storage_alloc): Likewise. diff --git a/libhurd-mm/exceptions.c b/libhurd-mm/exceptions.c index 10d932e..1a855b9 100644 --- a/libhurd-mm/exceptions.c +++ b/libhurd-mm/exceptions.c @@ -797,7 +797,7 @@ hurd_activation_state_alloc (vg_addr_t thread, struct hurd_utcb **utcbp) page += 1 + SKIP; #else /* Use the end of the UTCB. */ - utcb->vg.activation_handler_sp = utcb + PAGESIZE; + utcb->vg.activation_handler_sp = (void *) utcb + PAGESIZE; #endif /* At the top of the stack page, we use some space to remember the |