forked from Imagelibrary/rtems
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.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user