2010-04-15 Ralf Corsépius <ralf.corsepius@rtems.org>

* rtems/score/cpu.h: Make _gp global.
This commit is contained in:
Ralf Corsepius
2010-04-15 04:51:23 +00:00
parent 65357b7f4e
commit 6d521f09f1
2 changed files with 6 additions and 1 deletions

View File

@@ -1,3 +1,7 @@
2010-04-15 Ralf Corsépius <ralf.corsepius@rtems.org>
* rtems/score/cpu.h: Make _gp global.
2010-03-27 Joel Sherrill <joel.sherrill@oarcorp.com>
* cpu.c, cpu_asm.S, irq.c: Add include of config.h

View File

@@ -840,10 +840,11 @@ uint32_t _CPU_ISR_Get_level( void );
*
* XXX document implementation including references if appropriate
*/
extern char _gp[];
#define _CPU_Context_Initialize( _the_context, _stack_base, _size, \
_isr, _entry_point, _is_fp ) \
do { \
extern char _gp[]; \
uint32_t _stack = (uint32_t)(_stack_base) + (_size) - 4; \
(_the_context)->gp = (void *)_gp; \
(_the_context)->fp = (void *)_stack; \