summaryrefslogtreecommitdiffstats
path: root/cpukit/score/cpu/sh/cpu.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2009-02-11 21:45:05 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2009-02-11 21:45:05 +0000
commitc03e2bc8c7b6c2133db6a661d785409d4756149a (patch)
treeda32e8511a07cfb9cada9bdace09fd96f7204830 /cpukit/score/cpu/sh/cpu.c
parent2009-02-11 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-c03e2bc8c7b6c2133db6a661d785409d4756149a.tar.bz2
2009-02-11 Joel Sherrill <joel.sherrill@oarcorp.com>
* cpu.c, rtems/score/cpu.h: Eliminate _CPU_Thread_dispatch_pointer and passing address of _Thread_Dispatch to _CPU_Initialize. Clean up comments.
Diffstat (limited to 'cpukit/score/cpu/sh/cpu.c')
-rw-r--r--cpukit/score/cpu/sh/cpu.c21
1 files changed, 2 insertions, 19 deletions
diff --git a/cpukit/score/cpu/sh/cpu.c b/cpukit/score/cpu/sh/cpu.c
index a50c233db0..0daa7579ea 100644
--- a/cpukit/score/cpu/sh/cpu.c
+++ b/cpukit/score/cpu/sh/cpu.c
@@ -39,31 +39,14 @@ extern proc_ptr _Hardware_isr_Table[];
*
* This routine performs processor dependent initialization.
*
- * INPUT PARAMETERS:
- * thread_dispatch - address of dispatching routine
+ * INPUT PARAMETERS: NONE
*/
-
-void _CPU_Initialize(
- void (*thread_dispatch) /* ignored on this CPU */
-)
+void _CPU_Initialize(void)
{
register uint32_t level = 0;
/*
- * The thread_dispatch argument is the address of the entry point
- * for the routine called at the end of an ISR once it has been
- * decided a context switch is necessary. On some compilation
- * systems it is difficult to call a high-level language routine
- * from assembly. This allows us to trick these systems.
- *
- * If you encounter this problem save the entry point in a CPU
- * dependent variable.
- */
-
- _CPU_Thread_dispatch_pointer = thread_dispatch;
-
- /*
* If there is not an easy way to initialize the FP context
* during Context_Initialize, then it is usually easier to
* save an "uninitialized" FP context here and copy it to