summaryrefslogtreecommitdiff
path: root/sysdeps
diff options
context:
space:
mode:
authorNeal H. Walfield <neal@gnu.org>2007-12-12 23:32:52 +0000
committerThomas Schwinge <tschwinge@gnu.org>2009-04-07 23:11:34 +0200
commit7d83f98545fac33bcdb6e42914da1d9f2548d522 (patch)
treed2b880c244dc239a354b3407f44034d086c20e67 /sysdeps
parentb2412b7fe5c3b001fc5507f10471d343e530cf8e (diff)
hurd/
2007-12-13 Neal H. Walfield <neal@gnu.org> * exceptions.h (exception_page_cleanup): New declaration. libhurd-mm/ 2007-12-13 Neal H. Walfield <neal@gnu.org> * exceptions.c (exception_frame_alloc): When allocating the first frame, set EXCEPTION_PAGE->EXCEPTION_STACK_BOTTOM. (exception_page_cleanup): New function. * ia32-exception-entry.S (_exception_handler_end): Correctly adjust the exception page's exception stack. libpthread/ 2007-12-13 Neal H. Walfield <neal@gnu.org> * sysdeps/l4/hurd/pt-thread-halt.c: Include <hurd/exceptions.h>. (__pthread_thread_halt): Call exception_page_cleanup.
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/l4/hurd/pt-thread-halt.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sysdeps/l4/hurd/pt-thread-halt.c b/sysdeps/l4/hurd/pt-thread-halt.c
index 4aa112b1..1e9a8ee6 100644
--- a/sysdeps/l4/hurd/pt-thread-halt.c
+++ b/sysdeps/l4/hurd/pt-thread-halt.c
@@ -22,6 +22,8 @@
#include <pt-internal.h>
+#include <hurd/exceptions.h>
+
/* If we try to deallocate our self, we will end up causing a
deadlock. Thus, when a thread tries to free itself, we add it
here. The next thread to free a thread will free it. */
@@ -48,6 +50,8 @@ __pthread_thread_halt (struct __pthread *thread, int need_dealloc)
/* Free the exception page. */
assert (! ADDR_IS_VOID (exception_page.addr));
+ exception_page_cleanup (ADDR_TO_PTR (addr_extend (exception_page.addr,
+ 0, PAGESIZE_LOG2)));
storage_free (exception_page.addr, false);
if (tid == l4_myself ())