Skip to content

Commit

Permalink
* sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
Browse files Browse the repository at this point in the history
	(SINGLE_THREAD): Use `header' prefix instead of `header.data'.
	* sysdeps/sh/tcb-offsets.sym (MULTIPLE_THREADS_OFFSET): Likewise.
	* sysdeps/sh/tls.h (TLS_MULTIPLE_THREADS_IN_TCB): Define.
	* sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (SINGLE_THREAD_P):
	Use `header.' prefix.
	* sysdeps/ia64/tcb-offsets.sym (MULTIPLE_THREADS_OFFSET): Likewise.
  • Loading branch information
Jakub Jelinek committed Mar 15, 2003
1 parent 1419a95 commit eec0ca9
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 3 deletions.
10 changes: 10 additions & 0 deletions nptl/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
2003-03-15 Jakub Jelinek <jakub@redhat.com>

* sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
(SINGLE_THREAD): Use `header' prefix instead of `header.data'.
* sysdeps/sh/tcb-offsets.sym (MULTIPLE_THREADS_OFFSET): Likewise.
* sysdeps/sh/tls.h (TLS_MULTIPLE_THREADS_IN_TCB): Define.
* sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (SINGLE_THREAD_P):
Use `header.' prefix.
* sysdeps/ia64/tcb-offsets.sym (MULTIPLE_THREADS_OFFSET): Likewise.

2003-03-15 Ulrich Drepper <drepper@redhat.com>

* sysdeps/x86_64/pthreaddef.h (CURRENT_STACK_FRAME): Don't use
Expand Down
2 changes: 1 addition & 1 deletion nptl/sysdeps/ia64/tcb-offsets.sym
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <sysdep.h>
#include <tls.h>

MULTIPLE_THREADS_OFFSET offsetof (struct pthread, multiple_threads) - sizeof (struct pthread)
MULTIPLE_THREADS_OFFSET offsetof (struct pthread, header.multiple_threads) - sizeof (struct pthread)
2 changes: 1 addition & 1 deletion nptl/sysdeps/sh/tcb-offsets.sym
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include <sysdep.h>
#include <tls.h>

MULTIPLE_THREADS_OFFSET offsetof (struct pthread, header.data.multiple_threads)
MULTIPLE_THREADS_OFFSET offsetof (struct pthread, header.multiple_threads)
TLS_PRE_TCB_SIZE sizeof (struct pthread)
2 changes: 2 additions & 0 deletions nptl/sysdeps/sh/tls.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ typedef struct
void *private;
} tcbhead_t;

# define TLS_MULTIPLE_THREADS_IN_TCB 1

#else /* __ASSEMBLER__ */
# include <tcb-offsets.h>
#endif /* __ASSEMBLER__ */
Expand Down
2 changes: 1 addition & 1 deletion nptl/sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ __syscall_error_##args: \

# ifndef __ASSEMBLER__
# define SINGLE_THREAD_P \
__builtin_expect (THREAD_GETMEM (THREAD_SELF, multiple_threads) == 0, 1)
__builtin_expect (THREAD_GETMEM (THREAD_SELF, header.multiple_threads) == 0, 1)
# else
# define SINGLE_THREAD_P \
adds r14 = MULTIPLE_THREADS_OFFSET, r13 ;; ld4 r14 = [r14] ;; cmp4.ne p6, p7 = 0, r14
Expand Down

0 comments on commit eec0ca9

Please sign in to comment.