diff options
author | dfr <dfr@FreeBSD.org> | 1999-11-28 19:47:43 +0000 |
---|---|---|
committer | dfr <dfr@FreeBSD.org> | 1999-11-28 19:47:43 +0000 |
commit | 40f75646e17ad33162d267d29c837b01ad389a47 (patch) | |
tree | da2392504b5f7efd06c32ded79d45f4199ad1384 /lib/libpthread/thread/thr_private.h | |
parent | d7156780d39bcfe9261d9a092c4b4fcbf122a73e (diff) | |
download | FreeBSD-src-40f75646e17ad33162d267d29c837b01ad389a47.zip FreeBSD-src-40f75646e17ad33162d267d29c837b01ad389a47.tar.gz |
* Fix the stack allocation code so that it works for alpha. Change it
to use mmap(..., MAP_STACK, ...) on alpha too since that should work
now.
* Add hooks to allow GDB to access the internals of pthreads without
having to know the exact layout of struct pthread.
Reviewed by: deischen
Diffstat (limited to 'lib/libpthread/thread/thr_private.h')
-rw-r--r-- | lib/libpthread/thread/thr_private.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libpthread/thread/thr_private.h b/lib/libpthread/thread/thr_private.h index 0f27063..8bf8113 100644 --- a/lib/libpthread/thread/thr_private.h +++ b/lib/libpthread/thread/thr_private.h @@ -336,7 +336,8 @@ struct pthread_attr { */ #define PTHREAD_STACK_DEFAULT 65536 /* Size of red zone at the end of each stack. */ -#define PTHREAD_STACK_GUARD 4096 +#define PTHREAD_STACK_GUARD PAGE_SIZE + /* * Maximum size of initial thread's stack. This perhaps deserves to be larger * than the stacks of other threads, since many applications are likely to run @@ -466,6 +467,7 @@ struct pthread { #define PTHREAD_MAGIC ((u_int32_t) 0xd09ba115) u_int32_t magic; char *name; + u_int64_t uniqueid; /* for gdb */ /* * Lock for accesses to this thread structure. |