/[hurd]/hurd/libpthread/sysdeps/mach/hurd/pt-sysdep.c
ViewVC logotype

Diff of /hurd/libpthread/sysdeps/mach/hurd/pt-sysdep.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by neal, Thu Oct 10 23:05:05 2002 UTC revision 1.2 by neal, Wed May 4 16:04:05 2005 UTC
# Line 1  Line 1 
1  /* System dependent pthreads code.  Hurd version.  /* System dependent pthreads code.  Hurd version.
2     Copyright (C) 2000,02 Free Software Foundation, Inc.     Copyright (C) 2000, 2002, 2005 Free Software Foundation, Inc.
3     This file is part of the GNU C Library.     This file is part of the GNU C Library.
4    
5     The GNU C Library is free software; you can redistribute it and/or     The GNU C Library is free software; you can redistribute it and/or
# Line 29  Line 29 
29  #include <pt-internal.h>  #include <pt-internal.h>
30    
31  /* Forward.  */  /* Forward.  */
32  static int init_routine (void);  static void *init_routine (void);
33    
34  /* OK, the name of this variable isn't really appropriate, but I don't  /* OK, the name of this variable isn't really appropriate, but I don't
35     want to change it yet.  */     want to change it yet.  */
36  int (*_cthread_init_routine)(void) = &init_routine;  void *(*_cthread_init_routine)(void) = &init_routine;
37    
38  /* This function is called from the Hurd-specific startup code.  It  /* This function is called from the Hurd-specific startup code.  It
39     should return a new stack pointer for the main thread.  The caller     should return a new stack pointer for the main thread.  The caller
40     will switch to this new stack before doing anything serious.  */     will switch to this new stack before doing anything serious.  */
41  static int  static void *
42  init_routine (void)  init_routine (void)
43  {  {
44    struct __pthread *thread;    struct __pthread *thread;
# Line 68  init_routine (void) Line 68  init_routine (void)
68      = (__pthread_default_attr.stacksize      = (__pthread_default_attr.stacksize
69         - __hurd_threadvar_max * sizeof (uintptr_t));         - __hurd_threadvar_max * sizeof (uintptr_t));
70    
71    return (int) thread->mcontext.sp;    return thread->mcontext.sp;
72  }  }

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26