mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-26 22:48:23 +00:00
2010-04-15 Ralf Corsépius <ralf.corsepius@rtems.org>
* rtems/score/cpu.h: Make _gp global.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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; \
|
||||
|
||||
Reference in New Issue
Block a user