summaryrefslogtreecommitdiffstats
path: root/cpukit/score/cpu/sparc/cpu.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2007-11-02 13:35:02 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2007-11-02 13:35:02 +0000
commit48816d7d7a60a8bc07ef3fe397ad20657761d284 (patch)
tree5849908364b2d6b1e97444233bcd2d20572a9a1c /cpukit/score/cpu/sparc/cpu.c
parentAssume gdb >= 6.4 (diff)
downloadrtems-48816d7d7a60a8bc07ef3fe397ad20657761d284.tar.bz2
2007-11-02 Joel Sherrill <joel.sherrill@OARcorp.com>
* score/cpu/sparc/cpu.c, score/cpu/sparc/rtems/score/cpu.h, score/include/rtems/score/context.h, score/src/threadhandler.c: Fix stack so gdb backtrace does not print corrupted frame message after _Thread_Handler. Daniel Hellstrom <daniel@gaisler.com> provided the SPARC implementation and I made it more general.
Diffstat (limited to '')
-rw-r--r--cpukit/score/cpu/sparc/cpu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpukit/score/cpu/sparc/cpu.c b/cpukit/score/cpu/sparc/cpu.c
index e18acad6cc..b90b42da6c 100644
--- a/cpukit/score/cpu/sparc/cpu.c
+++ b/cpukit/score/cpu/sparc/cpu.c
@@ -1,7 +1,7 @@
/*
* SPARC Dependent Source
*
- * COPYRIGHT (c) 1989-1999.
+ * COPYRIGHT (c) 1989-2007.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -301,7 +301,7 @@ void _CPU_Context_Initialize(
the_context->o7 = ((uint32_t ) entry_point) - 8;
the_context->o6_sp = stack_high - CPU_MINIMUM_STACK_FRAME_SIZE;
- the_context->i6_fp = stack_high;
+ the_context->i6_fp = 0;
/*
* Build the PSR for the task. Most everything can be 0 and the