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 30... | Line 30... | ||
| 30 | * @{ |
30 | * @{ |
| 31 | */ |
31 | */ |
| 32 | /** @file |
32 | /** @file |
| 33 | */ |
33 | */ |
| 34 | 34 | ||
| 35 | #ifndef LIBC_ia64THREAD_H_ |
35 | #ifndef LIBC_ia64_THREAD_H_ |
| 36 | #define LIBC_ia64THREAD_H_ |
36 | #define LIBC_ia64_THREAD_H_ |
| 37 | 37 | ||
| 38 | #define THREAD_INITIAL_STACK_PAGES_NO 2 |
38 | #define THREAD_INITIAL_STACK_PAGES_NO 2 |
| 39 | 39 | ||
| 40 | /* This structure must be exactly 16 bytes long */ |
40 | /* This structure must be exactly 16 bytes long */ |
| 41 | typedef struct { |
41 | typedef struct { |
| 42 | void *dtv; /* unused in static linking*/ |
42 | void *dtv; /* unused in static linking*/ |
| 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 r13 = %0\n" : : "r" (tcb) : "r13"); |
48 | asm volatile ("mov r13 = %0\n" : : "r" (tcb) : "r13"); |