Rev 2479 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 2479 | Rev 2482 | ||
|---|---|---|---|
| Line 38... | Line 38... | ||
| 38 | #ifndef LIBC_sparc64_THREAD_H_ |
38 | #ifndef LIBC_sparc64_THREAD_H_ |
| 39 | #define LIBC_sparc64_THREAD_H_ |
39 | #define LIBC_sparc64_THREAD_H_ |
| 40 | 40 | ||
| 41 | typedef struct { |
41 | typedef struct { |
| 42 | void *self; |
42 | void *self; |
| 43 | void *pst_data; |
43 | void *fibril_data; |
| 44 | } tcb_t; |
44 | } tcb_t; |
| 45 | 45 | ||
| 46 | static inline void __tcb_set(tcb_t *tcb) |
46 | static inline void __tcb_set(tcb_t *tcb) |
| 47 | { |
47 | { |
| 48 | asm volatile ("mov %0, %%g7\n" : : "r" (tcb) : "g7"); |
48 | asm volatile ("mov %0, %%g7\n" : : "r" (tcb) : "g7"); |