Back to index

glibc  2.9
Defines | Variables
sysdep-cancel.h File Reference
#include <sysdep.h>
#include <tls.h>
#include <linuxthreads/internals.h>

Go to the source code of this file.

Defines

#define PSEUDO(name, syscall_name, args)
#define CENABLE   __libc_enable_asynccancel
#define CDISABLE   __libc_disable_asynccancel
#define __local_multiple_threads   __libc_multiple_threads
#define STM_0   /* Nothing */
#define STM_1   stg %r2,16(%r15);
#define STM_2   stmg %r2,%r3,16(%r15);
#define STM_3   stmg %r2,%r4,16(%r15);
#define STM_4   stmg %r2,%r5,16(%r15);
#define STM_5   stmg %r2,%r5,16(%r15);
#define LM_0   /* Nothing */
#define LM_1   lg %r2,16+160(%r15);
#define LM_2   lmg %r2,%r3,16+160(%r15);
#define LM_3   lmg %r2,%r4,16+160(%r15);
#define LM_4   lmg %r2,%r5,16+160(%r15);
#define LM_5   lmg %r2,%r5,16+160(%r15);
#define SINGLE_THREAD_P   __builtin_expect (__local_multiple_threads == 0, 1)

Variables

int __local_multiple_threads attribute_hidden

Define Documentation

#define __local_multiple_threads   __libc_multiple_threads

Definition at line 64 of file sysdep-cancel.h.

Definition at line 63 of file sysdep-cancel.h.

Definition at line 62 of file sysdep-cancel.h.

#define LM_0   /* Nothing */

Definition at line 77 of file sysdep-cancel.h.

#define LM_1   lg %r2,16+160(%r15);

Definition at line 78 of file sysdep-cancel.h.

#define LM_2   lmg %r2,%r3,16+160(%r15);

Definition at line 79 of file sysdep-cancel.h.

#define LM_3   lmg %r2,%r4,16+160(%r15);

Definition at line 80 of file sysdep-cancel.h.

#define LM_4   lmg %r2,%r5,16+160(%r15);

Definition at line 81 of file sysdep-cancel.h.

#define LM_5   lmg %r2,%r5,16+160(%r15);

Definition at line 82 of file sysdep-cancel.h.

#define PSEUDO (   name,
  syscall_name,
  args 
)
Value:
.text;                                                        \
L(pseudo_cancel):                                                    \
       STM_##args                                                    \
       stmg   %r13,%r15,104(%r15);                                   \
       lgr    %r14,%r15;                                             \
       aghi   %r15,-160;                                             \
       stg    %r14,0(%r15);                                          \
       brasl  %r14,CENABLE;                                          \
       lgr    %r0,%r2;                                               \
       LM_##args							      \
	DO_CALL(syscall_name, args);                                        \
       lgr    %r13,%r2;                                              \
       lgr    %r2,%r0;                                               \
       brasl  %r14,CDISABLE;                                                \
       lgr    %r2,%r13;                                              \
       lmg    %r13,%r15,104+160(%r15);                               \
       j      L(pseudo_check);                                       \
ENTRY(name)                                                          \
       SINGLE_THREAD_P                                                      \
       jne    L(pseudo_cancel);                                      \
       DO_CALL(syscall_name, args);                                         \
L(pseudo_check):                                                     \
       lghi   %r4,-4095;                                             \
       clgr   %r2,%r4;                                               \
       jgnl   SYSCALL_ERROR_LABEL;                                   \
L(pseudo_end):

Definition at line 29 of file sysdep-cancel.h.

Definition at line 87 of file sysdep-cancel.h.

#define STM_0   /* Nothing */

Definition at line 70 of file sysdep-cancel.h.

#define STM_1   stg %r2,16(%r15);

Definition at line 71 of file sysdep-cancel.h.

#define STM_2   stmg %r2,%r3,16(%r15);

Definition at line 72 of file sysdep-cancel.h.

#define STM_3   stmg %r2,%r4,16(%r15);

Definition at line 73 of file sysdep-cancel.h.

#define STM_4   stmg %r2,%r5,16(%r15);

Definition at line 74 of file sysdep-cancel.h.

#define STM_5   stmg %r2,%r5,16(%r15);

Definition at line 75 of file sysdep-cancel.h.


Variable Documentation

Definition at line 25 of file init-first.c.