|
Message
From: cvs at opencores.org<cvs@o...>
Date: Wed Mar 28 07:40:15 CEST 2007
Subject: [cvs-checkins] MODIFIED: mlite ...
Date: 00/07/03 28:07:40 Modified: mlite/kernel rtos.c Log: Use linker values _gp, __bss_start, _end, and InitStack Revision Changes Path 1.8 mlite/kernel/rtos.c http://www.opencores.org/cvsweb.shtml/mlite/kernel/rtos.c.diff?r1=1.7&r2=1.8 (In the diff below, changes in quantity of whitespace are not shown.) Index: rtos.c =================================================================== RCS file: /cvsroot/rhoads/mlite/kernel/rtos.c,v retrieving revision 1.7 retrieving revision 1.8 diff -u -b -r1.7 -r1.8 --- rtos.c 12 Feb 2007 05:07:47 -0000 1.7 +++ rtos.c 28 Mar 2007 05:40:15 -0000 1.8 @@ -134,6 +134,7 @@ static OS_Timer_t *TimerHead; //Linked list of timers sorted by timeout static OS_FuncPtr_t Isr[32]; static int InterruptInside; +int InitStack[128]; //Used by boot.asm /***************** Heap *******************/ @@ -639,7 +640,7 @@ OS_ThreadRegsInit(thread->env); env = (jmp_buf2*)thread->env; - env->sp = (uint32)stack + stackSize - 4; + env->sp = (uint32)stack + stackSize - 24; //minimum stack frame size env->pc = (uint32)OS_ThreadInit; state = OS_CriticalBegin();
|
 |