mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-07 06:43:00 +03:00
(CENABLE, CDISABLE, __local_multiple_threads): Fix definitions for IS_IN_librt.
2004-08-25 Richard Sandiford <rsandifo@redhat.com> * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (CENABLE, CDISABLE, __local_multiple_threads): Fix definitions for IS_IN_librt. * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: Likewise.
This commit is contained in:
@@ -1,3 +1,9 @@
|
|||||||
|
2004-08-25 Richard Sandiford <rsandifo@redhat.com>
|
||||||
|
|
||||||
|
* sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (CENABLE, CDISABLE,
|
||||||
|
__local_multiple_threads): Fix definitions for IS_IN_librt.
|
||||||
|
* sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: Likewise.
|
||||||
|
|
||||||
2004-08-22 Andreas Schwab <schwab@suse.de>
|
2004-08-22 Andreas Schwab <schwab@suse.de>
|
||||||
|
|
||||||
* sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO) [IS_IN_librt]:
|
* sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO) [IS_IN_librt]:
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
/* system call stubs with cancellation handling. Linux/MIPS version.
|
/* system call stubs with cancellation handling. Linux/MIPS version.
|
||||||
Copyright (C) 2003 Free Software Foundation, Inc.
|
Copyright (C) 2003, 2004 Free Software Foundation, Inc.
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
Contributed by Chris Demetriou of Broadcom Corporation,
|
Contributed by Chris Demetriou of Broadcom Corporation,
|
||||||
based on work by Guido Guenther <agx@sigxcpu.org>.
|
based on work by Guido Guenther <agx@sigxcpu.org>.
|
||||||
@@ -119,18 +119,16 @@
|
|||||||
# define CENABLE PTR_LA t9, __pthread_enable_asynccancel; jalr t9;
|
# define CENABLE PTR_LA t9, __pthread_enable_asynccancel; jalr t9;
|
||||||
# define CDISABLE PTR_LA t9, __pthread_disable_asynccancel; jalr t9;
|
# define CDISABLE PTR_LA t9, __pthread_disable_asynccancel; jalr t9;
|
||||||
# define __local_multiple_threads __pthread_multiple_threads
|
# define __local_multiple_threads __pthread_multiple_threads
|
||||||
|
# elif defined IS_IN_librt
|
||||||
|
# define CENABLE PTR_LA t9, __librt_enable_asynccancel; jalr t9;
|
||||||
|
# define CDISABLE PTR_LA t9, __librt_disable_asynccancel; jalr t9;
|
||||||
|
# define __local_multiple_threads __librt_multiple_threads
|
||||||
# else
|
# else
|
||||||
# define CENABLE PTR_LA t9, __libc_enable_asynccancel; jalr t9;
|
# define CENABLE PTR_LA t9, __libc_enable_asynccancel; jalr t9;
|
||||||
# define CDISABLE PTR_LA t9, __libc_disable_asynccancel; jalr t9;
|
# define CDISABLE PTR_LA t9, __libc_disable_asynccancel; jalr t9;
|
||||||
# define __local_multiple_threads __libc_multiple_threads
|
# define __local_multiple_threads __libc_multiple_threads
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
# if !defined NOT_IN_libc
|
|
||||||
# define __local_multiple_threads __libc_multiple_threads
|
|
||||||
# else
|
|
||||||
# define __local_multiple_threads __pthread_multiple_threads
|
|
||||||
# endif
|
|
||||||
|
|
||||||
# ifndef __ASSEMBLER__
|
# ifndef __ASSEMBLER__
|
||||||
extern int __local_multiple_threads attribute_hidden;
|
extern int __local_multiple_threads attribute_hidden;
|
||||||
# define SINGLE_THREAD_P __builtin_expect (__local_multiple_threads == 0, 1)
|
# define SINGLE_THREAD_P __builtin_expect (__local_multiple_threads == 0, 1)
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
/* Copyright (C) 2003 Free Software Foundation, Inc.
|
/* Copyright (C) 2003, 2004 Free Software Foundation, Inc.
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
Contributed by Guido Guenther <agx@sigxcpu.org>, 2003.
|
Contributed by Guido Guenther <agx@sigxcpu.org>, 2003.
|
||||||
|
|
||||||
@@ -118,18 +118,16 @@
|
|||||||
# define CENABLE la t9, __pthread_enable_asynccancel; jalr t9;
|
# define CENABLE la t9, __pthread_enable_asynccancel; jalr t9;
|
||||||
# define CDISABLE la t9, __pthread_disable_asynccancel; jalr t9;
|
# define CDISABLE la t9, __pthread_disable_asynccancel; jalr t9;
|
||||||
# define __local_multiple_threads __pthread_multiple_threads
|
# define __local_multiple_threads __pthread_multiple_threads
|
||||||
|
# elif defined IS_IN_librt
|
||||||
|
# define CENABLE la t9, __librt_enable_asynccancel; jalr t9;
|
||||||
|
# define CDISABLE la t9, __librt_disable_asynccancel; jalr t9;
|
||||||
|
# define __local_multiple_threads __librt_multiple_threads
|
||||||
# else
|
# else
|
||||||
# define CENABLE la t9, __libc_enable_asynccancel; jalr t9;
|
# define CENABLE la t9, __libc_enable_asynccancel; jalr t9;
|
||||||
# define CDISABLE la t9, __libc_disable_asynccancel; jalr t9;
|
# define CDISABLE la t9, __libc_disable_asynccancel; jalr t9;
|
||||||
# define __local_multiple_threads __libc_multiple_threads
|
# define __local_multiple_threads __libc_multiple_threads
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
# if !defined NOT_IN_libc
|
|
||||||
# define __local_multiple_threads __libc_multiple_threads
|
|
||||||
# else
|
|
||||||
# define __local_multiple_threads __pthread_multiple_threads
|
|
||||||
# endif
|
|
||||||
|
|
||||||
# ifndef __ASSEMBLER__
|
# ifndef __ASSEMBLER__
|
||||||
extern int __local_multiple_threads attribute_hidden;
|
extern int __local_multiple_threads attribute_hidden;
|
||||||
# define SINGLE_THREAD_P __builtin_expect (__local_multiple_threads == 0, 1)
|
# define SINGLE_THREAD_P __builtin_expect (__local_multiple_threads == 0, 1)
|
||||||
|
Reference in New Issue
Block a user