From 48816d7d7a60a8bc07ef3fe397ad20657761d284 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Fri, 2 Nov 2007 13:35:02 +0000 Subject: 2007-11-02 Joel Sherrill * 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 provided the SPARC implementation and I made it more general. --- cpukit/score/cpu/sparc/cpu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cpukit/score/cpu/sparc/cpu.c') 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 -- cgit v1.2.3