mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-04-20 13:31:58 -04:00
Add a separate portMINUS_CONTEXT_SIZE definition, in place of the previously used -portCONTEXT_SIZE usage.
This commit is contained in:
parent
9beca8b1b1
commit
c023af9c39
|
@ -68,6 +68,7 @@
|
||||||
back into the caller stack. */
|
back into the caller stack. */
|
||||||
#if XPAR_MICROBLAZE_0_USE_FPU == 1
|
#if XPAR_MICROBLAZE_0_USE_FPU == 1
|
||||||
#define portCONTEXT_SIZE 136
|
#define portCONTEXT_SIZE 136
|
||||||
|
#define portMINUS_CONTEXT_SIZE -136
|
||||||
#else
|
#else
|
||||||
#define portCONTEXT_SIZE 132
|
#define portCONTEXT_SIZE 132
|
||||||
#endif
|
#endif
|
||||||
|
@ -125,7 +126,7 @@ back into the caller stack. */
|
||||||
.macro portSAVE_CONTEXT
|
.macro portSAVE_CONTEXT
|
||||||
|
|
||||||
/* Make room for the context on the stack. */
|
/* Make room for the context on the stack. */
|
||||||
addik r1, r1, -portCONTEXT_SIZE
|
addik r1, r1, portMINUS_CONTEXT_SIZE
|
||||||
|
|
||||||
/* Stack general registers. */
|
/* Stack general registers. */
|
||||||
swi r31, r1, portR31_OFFSET
|
swi r31, r1, portR31_OFFSET
|
||||||
|
|
Loading…
Reference in a new issue