git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@618 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
parent
ce006bda5a
commit
36c9110259
|
@ -124,9 +124,9 @@ typedef struct {
|
||||||
*/
|
*/
|
||||||
#define STACK_ALIGN(n) ((((n) - 1) | sizeof(stkalign_t)) + 1)
|
#define STACK_ALIGN(n) ((((n) - 1) | sizeof(stkalign_t)) + 1)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Computes the thread working area global size.
|
* Computes the thread working area global size.
|
||||||
*/
|
*/
|
||||||
#define THD_WA_SIZE(n) STACK_ALIGN(sizeof(Thread) + \
|
#define THD_WA_SIZE(n) STACK_ALIGN(sizeof(Thread) + \
|
||||||
sizeof(struct intctx) + \
|
sizeof(struct intctx) + \
|
||||||
sizeof(struct extctx) + \
|
sizeof(struct extctx) + \
|
||||||
|
|
|
@ -132,9 +132,9 @@ typedef struct {
|
||||||
*/
|
*/
|
||||||
#define STACK_ALIGN(n) ((((n) - 1) | sizeof(stkalign_t)) + 1)
|
#define STACK_ALIGN(n) ((((n) - 1) | sizeof(stkalign_t)) + 1)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Computes the thread working area global size.
|
* Computes the thread working area global size.
|
||||||
*/
|
*/
|
||||||
#define THD_WA_SIZE(n) STACK_ALIGN(sizeof(Thread) + \
|
#define THD_WA_SIZE(n) STACK_ALIGN(sizeof(Thread) + \
|
||||||
sizeof(struct intctx) + \
|
sizeof(struct intctx) + \
|
||||||
sizeof(struct extctx) + \
|
sizeof(struct extctx) + \
|
||||||
|
|
|
@ -148,9 +148,9 @@ typedef struct {
|
||||||
*/
|
*/
|
||||||
#define STACK_ALIGN(n) ((((n) - 1) | sizeof(stkalign_t)) + 1)
|
#define STACK_ALIGN(n) ((((n) - 1) | sizeof(stkalign_t)) + 1)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Computes the thread working area global size.
|
* Computes the thread working area global size.
|
||||||
*/
|
*/
|
||||||
#define THD_WA_SIZE(n) STACK_ALIGN(sizeof(Thread) + \
|
#define THD_WA_SIZE(n) STACK_ALIGN(sizeof(Thread) + \
|
||||||
(sizeof(struct intctx) - 1) + \
|
(sizeof(struct intctx) - 1) + \
|
||||||
(sizeof(struct extctx) - 1) + \
|
(sizeof(struct extctx) - 1) + \
|
||||||
|
|
|
@ -121,9 +121,9 @@ typedef struct {
|
||||||
*/
|
*/
|
||||||
#define STACK_ALIGN(n) ((((n) - 1) | sizeof(stkalign_t)) + 1)
|
#define STACK_ALIGN(n) ((((n) - 1) | sizeof(stkalign_t)) + 1)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Computes the thread working area global size.
|
* Computes the thread working area global size.
|
||||||
*/
|
*/
|
||||||
#define THD_WA_SIZE(n) STACK_ALIGN(sizeof(Thread) + \
|
#define THD_WA_SIZE(n) STACK_ALIGN(sizeof(Thread) + \
|
||||||
sizeof(struct intctx) + \
|
sizeof(struct intctx) + \
|
||||||
sizeof(struct extctx) + \
|
sizeof(struct extctx) + \
|
||||||
|
|
|
@ -95,9 +95,9 @@ typedef struct {
|
||||||
*/
|
*/
|
||||||
#define STACK_ALIGN(n) ((((n) - 1) | sizeof(stkalign_t)) + 1)
|
#define STACK_ALIGN(n) ((((n) - 1) | sizeof(stkalign_t)) + 1)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Computes the thread working area global size.
|
* Computes the thread working area global size.
|
||||||
*/
|
*/
|
||||||
#define THD_WA_SIZE(n) STACK_ALIGN(sizeof(Thread) + \
|
#define THD_WA_SIZE(n) STACK_ALIGN(sizeof(Thread) + \
|
||||||
sizeof(struct intctx) + \
|
sizeof(struct intctx) + \
|
||||||
sizeof(struct extctx) + \
|
sizeof(struct extctx) + \
|
||||||
|
|
Loading…
Reference in New Issue