From ed76a2042b6083b109f11dc831a8969e36877f31 Mon Sep 17 00:00:00 2001 From: richardbarry Date: Sat, 23 Jul 2011 21:14:43 +0000 Subject: [PATCH] Add a separate portMINUS_CONTEXT_SIZE definition, in place of the previously used -portCONTEXT_SIZE usage. git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@1495 1d2547de-c912-0410-9cb9-b8ca96c0e9e2 --- .../FreeRTOS_Source/portable/GCC/MicroBlaze/portasm.S | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Demo/MicroBlaze_Spartan-6_EthernetLite/SDKProjects/RTOSDemoSource/FreeRTOS_Source/portable/GCC/MicroBlaze/portasm.S b/Demo/MicroBlaze_Spartan-6_EthernetLite/SDKProjects/RTOSDemoSource/FreeRTOS_Source/portable/GCC/MicroBlaze/portasm.S index eb3dc75a5..801504a80 100644 --- a/Demo/MicroBlaze_Spartan-6_EthernetLite/SDKProjects/RTOSDemoSource/FreeRTOS_Source/portable/GCC/MicroBlaze/portasm.S +++ b/Demo/MicroBlaze_Spartan-6_EthernetLite/SDKProjects/RTOSDemoSource/FreeRTOS_Source/portable/GCC/MicroBlaze/portasm.S @@ -68,6 +68,7 @@ back into the caller stack. */ #if XPAR_MICROBLAZE_0_USE_FPU == 1 #define portCONTEXT_SIZE 136 + #define portMINUS_CONTEXT_SIZE -136 #else #define portCONTEXT_SIZE 132 #endif @@ -125,7 +126,7 @@ back into the caller stack. */ .macro portSAVE_CONTEXT /* Make room for the context on the stack. */ - addik r1, r1, -portCONTEXT_SIZE + addik r1, r1, portMINUS_CONTEXT_SIZE /* Stack general registers. */ swi r31, r1, portR31_OFFSET -- 2.39.5