Last change
on this file since 444 was 337, checked in by coas-nagasima, 6 years ago |
ASP3版ECNLを追加
|
-
Property svn:eol-style
set to
native
-
Property svn:mime-type
set to
text/x-chdr;charset=UTF-8
|
File size:
378 bytes
|
Line | |
---|
1 | static inline struct pthread *__pthread_self()
|
---|
2 | {
|
---|
3 | #ifndef __c2__
|
---|
4 | char *self;
|
---|
5 | __asm__ __volatile__ ("mvfc fintv,%0" : "=r" (self) );
|
---|
6 | #else
|
---|
7 | extern void *thread_area;
|
---|
8 | char *self = (char *)thread_area;
|
---|
9 | #endif
|
---|
10 | return (struct pthread *) (self + 8 - sizeof(struct pthread));
|
---|
11 | }
|
---|
12 |
|
---|
13 | #define TLS_ABOVE_TP
|
---|
14 | #define TP_ADJ(p) ((char *)(p) + sizeof(struct pthread) - 8)
|
---|
15 |
|
---|
16 | #define MC_PC sc_pc
|
---|
Note:
See
TracBrowser
for help on using the repository browser.