diff options
author | richardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2> | 2012-04-16 18:33:32 +0000 |
---|---|---|
committer | richardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2> | 2012-04-16 18:33:32 +0000 |
commit | b51bdf3816243f9073f6c5e2004e97c43a9585b1 (patch) | |
tree | 3323f85234f417e9b243d804e799f2b7a8a80a82 | |
parent | 5e353f8f4373f319fc1ae1a109a5a589b8fd1e46 (diff) | |
download | freertos-b51bdf3816243f9073f6c5e2004e97c43a9585b1.tar.gz |
Set the last return address at the bottom of the stack to 0 in the RX600 ports to prevent E2Studio from attempting to dereference the 0xdeadbeef pointer.
git-svn-id: http://svn.code.sf.net/p/freertos/code/trunk@1736 1d2547de-c912-0410-9cb9-b8ca96c0e9e2
-rw-r--r-- | Source/portable/GCC/RX600/port.c | 2 | ||||
-rw-r--r-- | Source/portable/IAR/RX600/port.c | 2 | ||||
-rw-r--r-- | Source/portable/Renesas/RX200/port.c | 4 | ||||
-rw-r--r-- | Source/portable/Renesas/RX600/port.c | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/Source/portable/GCC/RX600/port.c b/Source/portable/GCC/RX600/port.c index 284fa56a1..5f0ef46fd 100644 --- a/Source/portable/GCC/RX600/port.c +++ b/Source/portable/GCC/RX600/port.c @@ -113,7 +113,7 @@ portSTACK_TYPE *pxPortInitialiseStack( portSTACK_TYPE *pxTopOfStack, pdTASK_CODE {
/* R0 is not included as it is the stack pointer. */
- *pxTopOfStack = 0xdeadbeef;
+ *pxTopOfStack = 0x00;
pxTopOfStack--;
*pxTopOfStack = portINITIAL_PSW;
pxTopOfStack--;
diff --git a/Source/portable/IAR/RX600/port.c b/Source/portable/IAR/RX600/port.c index e70dbeef2..4aeb7130b 100644 --- a/Source/portable/IAR/RX600/port.c +++ b/Source/portable/IAR/RX600/port.c @@ -99,7 +99,7 @@ portSTACK_TYPE *pxPortInitialiseStack( portSTACK_TYPE *pxTopOfStack, pdTASK_CODE {
/* R0 is not included as it is the stack pointer. */
- *pxTopOfStack = 0xdeadbeef;
+ *pxTopOfStack = 0x00;
pxTopOfStack--;
*pxTopOfStack = portINITIAL_PSW;
pxTopOfStack--;
diff --git a/Source/portable/Renesas/RX200/port.c b/Source/portable/Renesas/RX200/port.c index bfb6cc3f6..4aa61409e 100644 --- a/Source/portable/Renesas/RX200/port.c +++ b/Source/portable/Renesas/RX200/port.c @@ -118,9 +118,9 @@ portSTACK_TYPE *pxPortInitialiseStack( portSTACK_TYPE *pxTopOfStack, pdTASK_CODE {
/* R0 is not included as it is the stack pointer. */
- *pxTopOfStack = 0xdeadbeef;
+ *pxTopOfStack = 0x00;
pxTopOfStack--;
- *pxTopOfStack = 0xdeadbeef;
+ *pxTopOfStack = 0x00;
pxTopOfStack--;
*pxTopOfStack = portINITIAL_PSW;
pxTopOfStack--;
diff --git a/Source/portable/Renesas/RX600/port.c b/Source/portable/Renesas/RX600/port.c index b48617517..eca770535 100644 --- a/Source/portable/Renesas/RX600/port.c +++ b/Source/portable/Renesas/RX600/port.c @@ -119,7 +119,7 @@ portSTACK_TYPE *pxPortInitialiseStack( portSTACK_TYPE *pxTopOfStack, pdTASK_CODE {
/* R0 is not included as it is the stack pointer. */
- *pxTopOfStack = 0xdeadbeef;
+ *pxTopOfStack = 0x00;
pxTopOfStack--;
*pxTopOfStack = portINITIAL_PSW;
pxTopOfStack--;
|