summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/threadhandler.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/src/threadhandler.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 'cpukit/score/src/threadhandler.c')
-rw-r--r--cpukit/score/src/threadhandler.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/cpukit/score/src/threadhandler.c b/cpukit/score/src/threadhandler.c
index 7c94121009..523f623d02 100644
--- a/cpukit/score/src/threadhandler.c
+++ b/cpukit/score/src/threadhandler.c
@@ -76,6 +76,13 @@ void _Thread_Handler( void )
executing = _Thread_Executing;
/*
+ * Some CPUs need to tinker with the call frame or registers when the
+ * thread actually begins to execute for the first time. This is a
+ * hook point where the port gets a shot at doing whatever it requires.
+ */
+ _Context_Initialization_at_thread_begin();
+
+ /*
* have to put level into a register for those cpu's that use
* inline asm here
*/