diff options
author | Jakub Jelinek <jakub@redhat.com> | 2006-01-02 21:28:11 +0000 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2006-01-02 21:28:11 +0000 |
commit | 1df14a6af0eed9687fb62130fac201f2f067a936 (patch) | |
tree | b11b3dd9c9d2169fcf94bbf56023c3a21b2a3a2d /nptl/sysdeps/sparc/tls.h | |
parent | c77bdda8a080add749cbb248688d0889b4f9eed4 (diff) |
Updated to fedora-glibc-20060102T2114cvs/fedora-glibc-2_3_90-25
Diffstat (limited to 'nptl/sysdeps/sparc/tls.h')
-rw-r--r-- | nptl/sysdeps/sparc/tls.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/nptl/sysdeps/sparc/tls.h b/nptl/sysdeps/sparc/tls.h index ddc4848554..127bbf695f 100644 --- a/nptl/sysdeps/sparc/tls.h +++ b/nptl/sysdeps/sparc/tls.h @@ -1,5 +1,5 @@ /* Definitions for thread-local data handling. NPTL/sparc version. - Copyright (C) 2003, 2005 Free Software Foundation, Inc. + Copyright (C) 2003, 2005, 2006 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -48,6 +48,7 @@ typedef struct int multiple_threads; uintptr_t sysinfo; uintptr_t stack_guard; + uintptr_t pointer_guard; } tcbhead_t; #else /* __ASSEMBLER__ */ @@ -135,6 +136,14 @@ register struct pthread *__thread_self __asm__("%g7"); ((descr)->header.stack_guard \ = THREAD_GETMEM (THREAD_SELF, header.stack_guard)) +/* Get/set the stack guard field in TCB head. */ +#define THREAD_GET_POINTER_GUARD() \ + THREAD_GETMEM (THREAD_SELF, header.pointer_guard) +#define THREAD_SET_POINTER_GUARD(value) \ + THREAD_SETMEM (THREAD_SELF, header.pointer_guard, value) +# define THREAD_COPY_POINTER_GUARD(descr) \ + ((descr)->header.pointer_guard = THREAD_GET_POINTER_GUARD ()) + #endif /* !ASSEMBLER */ #endif /* tls.h */ |