From 9265969713f233d090485bde9f03272591ee0a02 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Mon, 3 Dec 2007 22:26:05 +0000 Subject: 2007-12-03 Joel Sherrill * 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. --- c/src/lib/libbsp/m68k/uC5282/ChangeLog | 10 ++++++++++ c/src/lib/libbsp/m68k/uC5282/include/bsp.h | 8 ++++++++ c/src/lib/libbsp/m68k/uC5282/startup/bspstart.c | 6 ------ 3 files changed, 18 insertions(+), 6 deletions(-) (limited to 'c/src/lib/libbsp') 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 + + * 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 * 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 -- cgit v1.2.3