diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2015-03-03 15:08:54 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2015-03-03 15:08:54 +0000 |
commit | 880d6916b3fb25b3972ed78b380db630524623e7 (patch) | |
tree | 9f57ae70320f161adcb84b75ed8870754190016e /os/rt/ports | |
parent | e2d1dd382a9739c2c9b970f32167d1ae12d2f499 (diff) | |
download | ChibiOS-880d6916b3fb25b3972ed78b380db630524623e7.tar.gz ChibiOS-880d6916b3fb25b3972ed78b380db630524623e7.tar.bz2 ChibiOS-880d6916b3fb25b3972ed78b380db630524623e7.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7713 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/rt/ports')
-rw-r--r-- | os/rt/ports/ARM/chcore.h | 2 | ||||
-rw-r--r-- | os/rt/ports/ARMCMx/chcore_v6m.h | 2 | ||||
-rw-r--r-- | os/rt/ports/ARMCMx/chcore_v7m.h | 2 | ||||
-rw-r--r-- | os/rt/ports/SIMIA32/chcore.h | 4 | ||||
-rw-r--r-- | os/rt/ports/e200/chcore.h | 2 |
5 files changed, 6 insertions, 6 deletions
diff --git a/os/rt/ports/ARM/chcore.h b/os/rt/ports/ARM/chcore.h index 980a45a8e..2d672d7ac 100644 --- a/os/rt/ports/ARM/chcore.h +++ b/os/rt/ports/ARM/chcore.h @@ -251,7 +251,7 @@ struct context { */
#define PORT_WA_SIZE(n) (sizeof(struct port_intctx) + \
sizeof(struct port_extctx) + \
- (n) + (PORT_INT_REQUIRED_STACK))
+ ((size_t)(n)) + ((size_t)(PORT_INT_REQUIRED_STACK)))
/**
* @brief IRQ prologue code.
diff --git a/os/rt/ports/ARMCMx/chcore_v6m.h b/os/rt/ports/ARMCMx/chcore_v6m.h index 7bb1b3d8f..3ded54449 100644 --- a/os/rt/ports/ARMCMx/chcore_v6m.h +++ b/os/rt/ports/ARMCMx/chcore_v6m.h @@ -197,7 +197,7 @@ struct port_intctx { */
#define PORT_WA_SIZE(n) (sizeof(struct port_intctx) + \
sizeof(struct port_extctx) + \
- (n) + (PORT_INT_REQUIRED_STACK))
+ ((size_t)(n)) + ((size_t)(PORT_INT_REQUIRED_STACK)))
/**
* @brief IRQ prologue code.
diff --git a/os/rt/ports/ARMCMx/chcore_v7m.h b/os/rt/ports/ARMCMx/chcore_v7m.h index 47a5cf9a8..80faaefc9 100644 --- a/os/rt/ports/ARMCMx/chcore_v7m.h +++ b/os/rt/ports/ARMCMx/chcore_v7m.h @@ -296,7 +296,7 @@ struct port_intctx { */
#define PORT_WA_SIZE(n) (sizeof(struct port_intctx) + \
sizeof(struct port_extctx) + \
- (n) + (PORT_INT_REQUIRED_STACK))
+ ((size_t)(n)) + ((size_t)(PORT_INT_REQUIRED_STACK)))
/**
* @brief IRQ prologue code.
diff --git a/os/rt/ports/SIMIA32/chcore.h b/os/rt/ports/SIMIA32/chcore.h index 5f7f3ff14..06d9f9329 100644 --- a/os/rt/ports/SIMIA32/chcore.h +++ b/os/rt/ports/SIMIA32/chcore.h @@ -191,8 +191,8 @@ struct context { #define PORT_WA_SIZE(n) (sizeof(void *) * 4 + \
sizeof(struct port_intctx) + \
sizeof(struct port_extctx) + \
- (n) + \
- PORT_INT_REQUIRED_STACK)
+ ((size_t)(n)) + \
+ ((size_t)(PORT_INT_REQUIRED_STACK)))
/**
* @brief IRQ prologue code.
diff --git a/os/rt/ports/e200/chcore.h b/os/rt/ports/e200/chcore.h index 116f269f0..f1485b81a 100644 --- a/os/rt/ports/e200/chcore.h +++ b/os/rt/ports/e200/chcore.h @@ -300,7 +300,7 @@ struct context { */
#define PORT_WA_SIZE(n) (sizeof(struct port_intctx) + \
sizeof(struct port_extctx) + \
- (n) + (PORT_INT_REQUIRED_STACK))
+ ((size_t)(n)) + ((size_t)(PORT_INT_REQUIRED_STACK)))
/**
* @brief IRQ prologue code.
|