git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1624 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
parent
5231f50f42
commit
76802b45d7
|
@ -85,6 +85,8 @@ struct context {
|
|||
*/
|
||||
#define SETUP_CONTEXT(workspace, wsize, pf, arg) { \
|
||||
uint8_t *esp = (uint8_t *)workspace + wsize; \
|
||||
APUSH(esp, 0); \
|
||||
APUSH(esp, 0); \
|
||||
APUSH(esp, arg); \
|
||||
APUSH(esp, threadexit); \
|
||||
esp -= sizeof(struct intctx); \
|
||||
|
@ -122,7 +124,7 @@ struct context {
|
|||
* Computes the thread working area global size.
|
||||
*/
|
||||
#define THD_WA_SIZE(n) STACK_ALIGN(sizeof(Thread) + \
|
||||
sizeof(void *) * 2 + \
|
||||
sizeof(void *) * 4 + \
|
||||
sizeof(struct intctx) + \
|
||||
sizeof(struct extctx) + \
|
||||
(n) + (INT_REQUIRED_STACK))
|
||||
|
|
Loading…
Reference in New Issue