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;
/*-----------------------------------------------------------*/
/*
* 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. */
/* Task function start address combined with the PSW. */
pulLocal = ( unsigned long * ) pxTopOfStack;
*pulLocal = (unsigned long) pxCode;
pxTopOfStack--;
/* Initial PSW value. */
*pxTopOfStack = portPSW;
*pulLocal = ( ( ( unsigned long ) pxCode ) | ( portPSW << 24UL ) );
pxTopOfStack--;
/* The parameter is passed in AX. */

Loading…
Cancel
Save