summaryrefslogtreecommitdiffstats
path: root/cpukit/score/cpu/lm32
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2010-04-15 04:51:23 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2010-04-15 04:51:23 +0000
commit6d521f09f1027bb402a070193fd80bdd922278dc (patch)
treefc88a3ece61feea2d860a462d93c8286aa3cd6bd /cpukit/score/cpu/lm32
parentRegenerate. (diff)
downloadrtems-6d521f09f1027bb402a070193fd80bdd922278dc.tar.bz2
2010-04-15 Ralf Corsépius <ralf.corsepius@rtems.org>
* rtems/score/cpu.h: Make _gp global.
Diffstat (limited to 'cpukit/score/cpu/lm32')
-rw-r--r--cpukit/score/cpu/lm32/ChangeLog4
-rw-r--r--cpukit/score/cpu/lm32/rtems/score/cpu.h3
2 files changed, 6 insertions, 1 deletions
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 <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
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; \