mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-12-07 05:34:59 -05:00
Merge branch 'main' into add-msvc-x64
This commit is contained in:
commit
eeb4799d90
1 changed files with 10 additions and 3 deletions
|
|
@ -183,16 +183,23 @@ StackType_t * pxPortInitialiseStack( StackType_t * pxTopOfStack,
|
|||
pxTopOfStack--;
|
||||
*pxTopOfStack = ( StackType_t ) 0xbbbb;
|
||||
pxTopOfStack--;
|
||||
#ifdef __MSPGCC__
|
||||
*pxTopOfStack = ( StackType_t ) 0xcccc;
|
||||
#else
|
||||
/* The MSP430 EABI expects the function parameter in R12. */
|
||||
*pxTopOfStack = ( StackType_t ) pvParameters;
|
||||
#endif
|
||||
pxTopOfStack--;
|
||||
*pxTopOfStack = ( StackType_t ) 0xdddd;
|
||||
pxTopOfStack--;
|
||||
*pxTopOfStack = ( StackType_t ) 0xeeee;
|
||||
pxTopOfStack--;
|
||||
|
||||
/* When the task starts is will expect to find the function parameter in
|
||||
* R15. */
|
||||
#ifdef __MSPGCC__
|
||||
/* The mspgcc ABI expects the function parameter in R15. */
|
||||
*pxTopOfStack = ( StackType_t ) pvParameters;
|
||||
#else
|
||||
*pxTopOfStack = ( StackType_t ) 0xffff;
|
||||
#endif
|
||||
pxTopOfStack--;
|
||||
|
||||
/* The code generated by the mspgcc compiler does not maintain separate
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue