]> rtime.felk.cvut.cz Git - l4.git/blob - l4/pkg/uclibc/lib/uclibc/ARCH-arm/aeabi_read_tp_generic.c
update
[l4.git] / l4 / pkg / uclibc / lib / uclibc / ARCH-arm / aeabi_read_tp_generic.c
1
2 #include <l4/sys/utcb.h>
3 #include <tls.h>
4
5 #ifdef NOT_IN_libc
6 #define HIDDEN __attribute__((visibility("hidden"),nothrow))
7 #else
8 #define HIDDEN __attribute__((nothrow))
9 #endif
10
11 unsigned long HIDDEN __aeabi_read_tp(void);
12 unsigned long HIDDEN __aeabi_read_tp(void)
13 {
14   return l4_utcb_tcr()->user[0] + TLS_PRE_TCB_SIZE;
15 }