From 5638e7a335b7d7731adf16afe7d2d88a5b8d1dcd Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Sat, 22 Dec 2001 21:02:31 +0000 Subject: 2001-12-22 Roland McGrath * i386/thread.c (cthread_sp): Use __thread_stack_pointer. --- libthreads/i386/thread.c | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) (limited to 'libthreads') diff --git a/libthreads/i386/thread.c b/libthreads/i386/thread.c index 0a20d4ce..c6781b9d 100644 --- a/libthreads/i386/thread.c +++ b/libthreads/i386/thread.c @@ -26,6 +26,18 @@ /* * HISTORY * $Log: thread.c,v $ + * Revision 1.5 2001/03/31 23:03:03 roland + * 2001-03-31 Roland McGrath + * + * * cthreads.h: Fix obsolescent #endif syntax. + * * cthread_internals.h: Likewise. + * * cancel-cond.c: Likewise. + * * stack.c: Likewise. + * * cthreads.c: Likewise. + * * cprocs.c: Likewise. + * * call.c: Likewise. + * * i386/thread.c: Likewise. + * * Revision 1.4 2001/02/26 04:15:27 roland * 2001-02-25 Roland McGrath * @@ -66,7 +78,7 @@ */ #ifndef lint -static char rcs_id[] = "$Header: cvs-sans-libpthread/hurd/libthreads/i386/thread.c,v 1.5 2001/03/31 23:03:03 roland Exp $"; +static char rcs_id[] = "$Header: cvs-sans-libpthread/hurd/libthreads/i386/thread.c,v 1.6 2001/12/22 21:02:31 roland Exp $"; #endif /* not lint */ @@ -122,7 +134,5 @@ cproc_setup(child, thread, routine) int cthread_sp() { - int x; - - return (int) &x; + return (int) __thread_stack_pointer (); } -- cgit v1.2.3