1 From 1b6e90090da7194a8f94277aa132873044f7e8e7 Mon Sep 17 00:00:00 2001
2 From: carmelo <carmelo@69ca8d6d-28ef-0310-b511-8ec308f3f277>
3 Date: Wed, 28 Jan 2009 15:23:51 +0000
4 Subject: [PATCH] Added sysdep.h and sysdep-cancel.h for linuxthreads ARM
6 Signed-off-by: Will Wagner <will_wagner@carallon.com>
10 git-svn-id: svn+ssh://uclibc.org/svn/trunk/uClibc@25099 69ca8d6d-28ef-0310-b511-8ec308f3f277
12 .../linuxthreads/sysdeps/arm/sysdep-cancel.h | 8 +
13 libpthread/linuxthreads/sysdeps/arm/sysdep.h | 137 ++++++++++++++++++++
14 2 files changed, 145 insertions(+), 0 deletions(-)
15 create mode 100644 libpthread/linuxthreads/sysdeps/arm/sysdep-cancel.h
16 create mode 100644 libpthread/linuxthreads/sysdeps/arm/sysdep.h
18 diff --git a/libpthread/linuxthreads/sysdeps/arm/sysdep-cancel.h b/libpthread/linuxthreads/sysdeps/arm/sysdep-cancel.h
20 index 0000000..ba6a1e0
22 +++ b/libpthread/linuxthreads/sysdeps/arm/sysdep-cancel.h
26 +/* No multi-thread handling enabled. */
27 +#define SINGLE_THREAD_P (1)
28 +#define RTLD_SINGLE_THREAD_P (1)
29 +#define LIBC_CANCEL_ASYNC() 0 /* Just a dummy value. */
30 +#define LIBC_CANCEL_RESET(val) ((void)(val)) /* Nothing, but evaluate it. */
31 +#define LIBC_CANCEL_HANDLED() /* Nothing. */
32 diff --git a/libpthread/linuxthreads/sysdeps/arm/sysdep.h b/libpthread/linuxthreads/sysdeps/arm/sysdep.h
34 index 0000000..15d951c
36 +++ b/libpthread/linuxthreads/sysdeps/arm/sysdep.h
38 +/* Generic asm macros used on many machines.
39 + Copyright (C) 1991,92,93,96,98,2002,2003 Free Software Foundation, Inc.
40 + This file is part of the GNU C Library.
42 + The GNU C Library is free software; you can redistribute it and/or
43 + modify it under the terms of the GNU Lesser General Public
44 + License as published by the Free Software Foundation; either
45 + version 2.1 of the License, or (at your option) any later version.
47 + The GNU C Library is distributed in the hope that it will be useful,
48 + but WITHOUT ANY WARRANTY; without even the implied warranty of
49 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
50 + Lesser General Public License for more details.
52 + You should have received a copy of the GNU Lesser General Public
53 + License along with the GNU C Library; if not, write to the Free
54 + Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
59 +/* Define a macro we can use to construct the asm name for a C symbol. */
60 +#ifdef NO_UNDERSCORES
62 +#define C_LABEL(name) name##:
64 +#define C_LABEL(name) name/**/:
68 +#define C_LABEL(name) _##name##:
70 +#define C_LABEL(name) _/**/name/**/:
77 +/* Mark the end of function named SYM. This is used on some platforms
78 + to generate correct debugging information. */
84 +#define JUMPTARGET(sym) sym
87 +/* Makros to generate eh_frame unwind information. */
88 +# ifdef HAVE_ASM_CFI_DIRECTIVES
89 +# define cfi_startproc .cfi_startproc
90 +# define cfi_endproc .cfi_endproc
91 +# define cfi_def_cfa(reg, off) .cfi_def_cfa reg, off
92 +# define cfi_def_cfa_register(reg) .cfi_def_cfa_register reg
93 +# define cfi_def_cfa_offset(off) .cfi_def_cfa_offset off
94 +# define cfi_adjust_cfa_offset(off) .cfi_adjust_cfa_offset off
95 +# define cfi_offset(reg, off) .cfi_offset reg, off
96 +# define cfi_rel_offset(reg, off) .cfi_rel_offset reg, off
97 +# define cfi_register(r1, r2) .cfi_register r1, r2
98 +# define cfi_return_column(reg) .cfi_return_column reg
99 +# define cfi_restore(reg) .cfi_restore reg
100 +# define cfi_same_value(reg) .cfi_same_value reg
101 +# define cfi_undefined(reg) .cfi_undefined reg
102 +# define cfi_remember_state .cfi_remember_state
103 +# define cfi_restore_state .cfi_restore_state
104 +# define cfi_window_save .cfi_window_save
106 +# define cfi_startproc
107 +# define cfi_endproc
108 +# define cfi_def_cfa(reg, off)
109 +# define cfi_def_cfa_register(reg)
110 +# define cfi_def_cfa_offset(off)
111 +# define cfi_adjust_cfa_offset(off)
112 +# define cfi_offset(reg, off)
113 +# define cfi_rel_offset(reg, off)
114 +# define cfi_register(r1, r2)
115 +# define cfi_return_column(reg)
116 +# define cfi_restore(reg)
117 +# define cfi_same_value(reg)
118 +# define cfi_undefined(reg)
119 +# define cfi_remember_state
120 +# define cfi_restore_state
121 +# define cfi_window_save
124 +#else /* ! ASSEMBLER */
125 +# ifdef HAVE_ASM_CFI_DIRECTIVES
126 +# define CFI_STRINGIFY(Name) CFI_STRINGIFY2 (Name)
127 +# define CFI_STRINGIFY2(Name) #Name
128 +# define CFI_STARTPROC ".cfi_startproc"
129 +# define CFI_ENDPROC ".cfi_endproc"
130 +# define CFI_DEF_CFA(reg, off) \
131 + ".cfi_def_cfa " CFI_STRINGIFY(reg) "," CFI_STRINGIFY(off)
132 +# define CFI_DEF_CFA_REGISTER(reg) \
133 + ".cfi_def_cfa_register " CFI_STRINGIFY(reg)
134 +# define CFI_DEF_CFA_OFFSET(off) \
135 + ".cfi_def_cfa_offset " CFI_STRINGIFY(off)
136 +# define CFI_ADJUST_CFA_OFFSET(off) \
137 + ".cfi_adjust_cfa_offset " CFI_STRINGIFY(off)
138 +# define CFI_OFFSET(reg, off) \
139 + ".cfi_offset " CFI_STRINGIFY(reg) "," CFI_STRINGIFY(off)
140 +# define CFI_REL_OFFSET(reg, off) \
141 + ".cfi_rel_offset " CFI_STRINGIFY(reg) "," CFI_STRINGIFY(off)
142 +# define CFI_REGISTER(r1, r2) \
143 + ".cfi_register " CFI_STRINGIFY(r1) "," CFI_STRINGIFY(r2)
144 +# define CFI_RETURN_COLUMN(reg) \
145 + ".cfi_return_column " CFI_STRINGIFY(reg)
146 +# define CFI_RESTORE(reg) \
147 + ".cfi_restore " CFI_STRINGIFY(reg)
148 +# define CFI_UNDEFINED(reg) \
149 + ".cfi_undefined " CFI_STRINGIFY(reg)
150 +# define CFI_REMEMBER_STATE \
151 + ".cfi_remember_state"
152 +# define CFI_RESTORE_STATE \
153 + ".cfi_restore_state"
154 +# define CFI_WINDOW_SAVE \
157 +# define CFI_STARTPROC
158 +# define CFI_ENDPROC
159 +# define CFI_DEF_CFA(reg, off)
160 +# define CFI_DEF_CFA_REGISTER(reg)
161 +# define CFI_DEF_CFA_OFFSET(off)
162 +# define CFI_ADJUST_CFA_OFFSET(off)
163 +# define CFI_OFFSET(reg, off)
164 +# define CFI_REL_OFFSET(reg, off)
165 +# define CFI_REGISTER(r1, r2)
166 +# define CFI_RETURN_COLUMN(reg)
167 +# define CFI_RESTORE(reg)
168 +# define CFI_UNDEFINED(reg)
169 +# define CFI_REMEMBER_STATE
170 +# define CFI_RESTORE_STATE
171 +# define CFI_WINDOW_SAVE
174 +#endif /* __ASSEMBLER__ */