Add code for near memory model.

pull/4/head
Richard Barry 16 years ago
parent e4319d7f88
commit 035abe8707

@ -91,11 +91,6 @@ sequence. */
volatile unsigned portSHORT usCriticalNesting = portINITIAL_CRITICAL_NESTING; 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. * Sets up the periodic ISR used for the RTOS tick.
*/ */
@ -145,17 +140,14 @@ unsigned long *pulLocal;
} }
#else #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--; pxTopOfStack--;
/* Task function start address. */ /* Task function start address combined with the PSW. */
pulLocal = ( unsigned long * ) pxTopOfStack; pulLocal = ( unsigned long * ) pxTopOfStack;
*pulLocal = (unsigned long) pxCode; *pulLocal = ( ( ( unsigned long ) pxCode ) | ( portPSW << 24UL ) );
pxTopOfStack--;
/* Initial PSW value. */
*pxTopOfStack = portPSW;
pxTopOfStack--; pxTopOfStack--;
/* The parameter is passed in AX. */ /* The parameter is passed in AX. */

Loading…
Cancel
Save