Rev 2479 | Rev 2541 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 2479 | Rev 2482 | ||
|---|---|---|---|
| Line 28... | Line 28... | ||
| 28 | 28 | ||
| 29 | /** @addtogroup libcarm32 |
29 | /** @addtogroup libcarm32 |
| 30 | * @{ |
30 | * @{ |
| 31 | */ |
31 | */ |
| 32 | /** @file |
32 | /** @file |
| 33 | * @brief psthread related declarations. |
33 | * @brief Fibrils related declarations. |
| 34 | */ |
34 | */ |
| 35 | 35 | ||
| 36 | #ifndef LIBC_arm32_PSTHREAD_H_ |
36 | #ifndef LIBC_arm32_FIBRIL_H_ |
| 37 | #define LIBC_arm32_PSTHREAD_H_ |
37 | #define LIBC_arm32_FIBRIL_H_ |
| 38 | 38 | ||
| 39 | #include <types.h> |
39 | #include <types.h> |
| 40 | #include <align.h> |
40 | #include <align.h> |
| 41 | #include "thread.h" |
41 | #include "thread.h" |
| 42 | 42 | ||
| Line 61... | Line 61... | ||
| 61 | (c)->pc = (sysarg_t) (_pc); \ |
61 | (c)->pc = (sysarg_t) (_pc); \ |
| 62 | (c)->sp = ((sysarg_t) (stack)) + (size) - SP_DELTA; \ |
62 | (c)->sp = ((sysarg_t) (stack)) + (size) - SP_DELTA; \ |
| 63 | (c)->tls = ((sysarg_t)(ptls)) + sizeof(tcb_t) + ARM_TP_OFFSET; |
63 | (c)->tls = ((sysarg_t)(ptls)) + sizeof(tcb_t) + ARM_TP_OFFSET; |
| 64 | 64 | ||
| 65 | 65 | ||
| 66 | /** Thread context. |
66 | /** Fibril context. |
| 67 | * |
67 | * |
| 68 | * Only registers preserved accross function calls are included. r9 is used |
68 | * Only registers preserved accross function calls are included. r9 is used |
| 69 | * to store a TLS address. -ffixed-r9 gcc forces gcc not to use this |
69 | * to store a TLS address. -ffixed-r9 gcc forces gcc not to use this |
| 70 | * register. -mtp=soft forces gcc to use #__aeabi_read_tp to obtain |
70 | * register. -mtp=soft forces gcc to use #__aeabi_read_tp to obtain |
| 71 | * TLS address. |
71 | * TLS address. |