mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-04-20 05:21:59 -04:00
Add code for near memory model.
This commit is contained in:
parent
e4319d7f88
commit
035abe8707
|
@ -91,11 +91,6 @@ sequence. */
|
|||
volatile unsigned portSHORT usCriticalNesting = portINITIAL_CRITICAL_NESTING;
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
/*
|
||||
* The tick interrupt handler.
|
||||
*/
|
||||
__interrupt void MD_INTTM05( void );
|
||||
|
||||
/*
|
||||
* Sets up the periodic ISR used for the RTOS tick.
|
||||
*/
|
||||
|
@ -145,17 +140,14 @@ unsigned long *pulLocal;
|
|||
}
|
||||
#else
|
||||
{
|
||||
TBD
|
||||
|
||||
/* Task function address is written to the stack first. As it is
|
||||
written as a 32bit value a space is left on the stack for the second
|
||||
two bytes. */
|
||||
pxTopOfStack--;
|
||||
|
||||
/* Task function start address. */
|
||||
pulLocal = (unsigned long*) pxTopOfStack;
|
||||
*pulLocal = (unsigned long) pxCode;
|
||||
pxTopOfStack--;
|
||||
|
||||
/* Initial PSW value. */
|
||||
*pxTopOfStack = portPSW;
|
||||
/* Task function start address combined with the PSW. */
|
||||
pulLocal = ( unsigned long * ) pxTopOfStack;
|
||||
*pulLocal = ( ( ( unsigned long ) pxCode ) | ( portPSW << 24UL ) );
|
||||
pxTopOfStack--;
|
||||
|
||||
/* The parameter is passed in AX. */
|
||||
|
|
Loading…
Reference in a new issue