From 6d521f09f1027bb402a070193fd80bdd922278dc Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Thu, 15 Apr 2010 04:51:23 +0000 Subject: =?UTF-8?q?2010-04-15=09Ralf=20Cors=C3=A9pius=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * rtems/score/cpu.h: Make _gp global. --- cpukit/score/cpu/lm32/ChangeLog | 4 ++++ cpukit/score/cpu/lm32/rtems/score/cpu.h | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'cpukit/score/cpu/lm32') diff --git a/cpukit/score/cpu/lm32/ChangeLog b/cpukit/score/cpu/lm32/ChangeLog index 98d579cb9d..81311b892c 100644 --- a/cpukit/score/cpu/lm32/ChangeLog +++ b/cpukit/score/cpu/lm32/ChangeLog @@ -1,3 +1,7 @@ +2010-04-15 Ralf Corsépius + + * rtems/score/cpu.h: Make _gp global. + 2010-03-27 Joel Sherrill * cpu.c, cpu_asm.S, irq.c: Add include of config.h diff --git a/cpukit/score/cpu/lm32/rtems/score/cpu.h b/cpukit/score/cpu/lm32/rtems/score/cpu.h index 41c30ca099..9cf0ec389f 100644 --- a/cpukit/score/cpu/lm32/rtems/score/cpu.h +++ b/cpukit/score/cpu/lm32/rtems/score/cpu.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; \ -- cgit v1.2.3