diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2007-12-03 22:26:05 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2007-12-03 22:26:05 +0000 |
commit | 9265969713f233d090485bde9f03272591ee0a02 (patch) | |
tree | 3eff81e580ce886ff7ae4e6642fc15e9d4ecab38 /c/src/lib | |
parent | 2007-12-03 Joel Sherrill <joel.sherrill@OARcorp.com> (diff) | |
download | rtems-9265969713f233d090485bde9f03272591ee0a02.tar.bz2 |
2007-12-03 Joel Sherrill <joel.sherrill@OARcorp.com>
* include/bsp.h, startup/bspstart.c: Moved most of the remaining CPU
Table fields to the Configuration Table. This included
pretasking_hook, predriver_hook, postdriver_hook, idle_task,
do_zero_of_workspace, extra_mpci_receive_server_stack,
stack_allocate_hook, and stack_free_hook. As a side-effect of this
effort some multiprocessing code was made conditional and some style
clean up occurred.
Diffstat (limited to '')
-rw-r--r-- | c/src/lib/libbsp/m68k/uC5282/ChangeLog | 10 | ||||
-rw-r--r-- | c/src/lib/libbsp/m68k/uC5282/include/bsp.h | 8 | ||||
-rw-r--r-- | c/src/lib/libbsp/m68k/uC5282/startup/bspstart.c | 6 |
3 files changed, 18 insertions, 6 deletions
diff --git a/c/src/lib/libbsp/m68k/uC5282/ChangeLog b/c/src/lib/libbsp/m68k/uC5282/ChangeLog index df45db074a..ba8c145531 100644 --- a/c/src/lib/libbsp/m68k/uC5282/ChangeLog +++ b/c/src/lib/libbsp/m68k/uC5282/ChangeLog @@ -1,3 +1,13 @@ +2007-12-03 Joel Sherrill <joel.sherrill@OARcorp.com> + + * include/bsp.h, startup/bspstart.c: Moved most of the remaining CPU + Table fields to the Configuration Table. This included + pretasking_hook, predriver_hook, postdriver_hook, idle_task, + do_zero_of_workspace, extra_mpci_receive_server_stack, + stack_allocate_hook, and stack_free_hook. As a side-effect of this + effort some multiprocessing code was made conditional and some style + clean up occurred. + 2007-11-26 Joel Sherrill <joel.sherrill@oarcorp.com> * startup/bspstart.c: Eliminate the interrupt_vector_table field in the diff --git a/c/src/lib/libbsp/m68k/uC5282/include/bsp.h b/c/src/lib/libbsp/m68k/uC5282/include/bsp.h index b2a38f7eb9..3aec736efd 100644 --- a/c/src/lib/libbsp/m68k/uC5282/include/bsp.h +++ b/c/src/lib/libbsp/m68k/uC5282/include/bsp.h @@ -149,6 +149,14 @@ int BSP_enableVME_int_lvl(unsigned int level); int BSP_disableVME_int_lvl(unsigned int level); int BSP_vme2local_adrs(unsigned am, unsigned long vmeaddr, unsigned long *plocaladdr); +/* + * This BSP provides its own IDLE task to override the RTEMS one. + * So we prototype it and define the constant confdefs.h expects + * to configure a BSP specific one. + */ +void _BSP_Thread_Idle_body(void); + +#define BSP_IDLE_TASK_BODY _BSP_Thread_Idle_body #ifdef __cplusplus } diff --git a/c/src/lib/libbsp/m68k/uC5282/startup/bspstart.c b/c/src/lib/libbsp/m68k/uC5282/startup/bspstart.c index 1cfc9c6602..a8c47236ef 100644 --- a/c/src/lib/libbsp/m68k/uC5282/startup/bspstart.c +++ b/c/src/lib/libbsp/m68k/uC5282/startup/bspstart.c @@ -269,13 +269,7 @@ void bsp_start( void ) /* * initialize the CPU table for this BSP */ - Cpu_table.pretasking_hook = bsp_pretasking_hook; /* init libc, etc. */ - Cpu_table.postdriver_hook = bsp_postdriver_hook; Cpu_table.interrupt_stack_size = 4096; - { - extern void _BSP_Thread_Idle_body(void); - Cpu_table.idle_task = _BSP_Thread_Idle_body; - } /* * Invalidate the cache and disable it |