summaryrefslogtreecommitdiffstats
path: root/cpukit/score/cpu/h8300
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/score/cpu/h8300')
-rw-r--r--cpukit/score/cpu/h8300/ChangeLog6
-rw-r--r--cpukit/score/cpu/h8300/cpu.c20
-rw-r--r--cpukit/score/cpu/h8300/rtems/score/cpu.h20
3 files changed, 9 insertions, 37 deletions
diff --git a/cpukit/score/cpu/h8300/ChangeLog b/cpukit/score/cpu/h8300/ChangeLog
index bfa411547b..825b8e323a 100644
--- a/cpukit/score/cpu/h8300/ChangeLog
+++ b/cpukit/score/cpu/h8300/ChangeLog
@@ -1,5 +1,11 @@
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.
+
+2009-02-11 Joel Sherrill <joel.sherrill@oarcorp.com>
+
* rtems/score/cpu.h: Do not unroll any code on this target and use a
16-bit object id.
diff --git a/cpukit/score/cpu/h8300/cpu.c b/cpukit/score/cpu/h8300/cpu.c
index 5f0dab32eb..2784bdcd46 100644
--- a/cpukit/score/cpu/h8300/cpu.c
+++ b/cpukit/score/cpu/h8300/cpu.c
@@ -19,29 +19,13 @@
*
* 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)
{
/*
- * 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
diff --git a/cpukit/score/cpu/h8300/rtems/score/cpu.h b/cpukit/score/cpu/h8300/rtems/score/cpu.h
index 44d54b7c80..df98aee925 100644
--- a/cpukit/score/cpu/h8300/rtems/score/cpu.h
+++ b/cpukit/score/cpu/h8300/rtems/score/cpu.h
@@ -452,22 +452,6 @@ SCORE_EXTERN void *_CPU_Interrupt_stack_low;
SCORE_EXTERN void *_CPU_Interrupt_stack_high;
/*
- * With some compilation systems, it is difficult if not impossible to
- * call a high-level language routine from assembly language. This
- * is especially true of commercial Ada compilers and name mangling
- * C++ ones. This variable can be optionally defined by the CPU porter
- * and contains the address of the routine _Thread_Dispatch. This
- * can make it easier to invoke that routine at the end of the interrupt
- * sequence (if a dispatch is necessary).
- *
- * H8300 Specific Information:
- *
- * XXX
- */
-
-SCORE_EXTERN void (*_CPU_Thread_dispatch_pointer)(void);
-
-/*
* Nothing prevents the porter from declaring more CPU specific variables.
*
* H8300 Specific Information:
@@ -997,9 +981,7 @@ uint32_t _CPU_ISR_Get_level( void );
* XXX
*/
-void _CPU_Initialize(
- void (*thread_dispatch)
-);
+void _CPU_Initialize(void);
/*
* _CPU_ISR_install_raw_handler