From faf168fe82f012bc92674290e74d42b6982b6bdc Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Mon, 3 Dec 2007 22:26:03 +0000 Subject: 2007-12-03 Joel Sherrill * 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/unix/posix/ChangeLog | 9 +++++++++ c/src/lib/libbsp/unix/posix/startup/bspstart.c | 22 ---------------------- 2 files changed, 9 insertions(+), 22 deletions(-) (limited to 'c/src/lib/libbsp/unix') diff --git a/c/src/lib/libbsp/unix/posix/ChangeLog b/c/src/lib/libbsp/unix/posix/ChangeLog index f4bb2fc669..e8719aa6d7 100644 --- a/c/src/lib/libbsp/unix/posix/ChangeLog +++ b/c/src/lib/libbsp/unix/posix/ChangeLog @@ -1,3 +1,12 @@ +2007-12-03 Joel Sherrill + + * 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-08-07 Joel Sherrill * preinstall.am: Save changes again to make tagger happy. diff --git a/c/src/lib/libbsp/unix/posix/startup/bspstart.c b/c/src/lib/libbsp/unix/posix/startup/bspstart.c index 88834879cf..a9923db267 100644 --- a/c/src/lib/libbsp/unix/posix/startup/bspstart.c +++ b/c/src/lib/libbsp/unix/posix/startup/bspstart.c @@ -178,34 +178,12 @@ void bsp_start(void) BSP_Configuration.work_space_start = (void *) workspace_ptr; - /* - * Set up our hooks - * Make sure libc_init is done before drivers init'd so that - * they can use atexit() - */ - - Cpu_table.pretasking_hook = bsp_pretasking_hook; /* init libc, etc. */ - - Cpu_table.predriver_hook = NULL; - - Cpu_table.postdriver_hook = bsp_postdriver_hook; - - Cpu_table.idle_task = NULL; /* do not override system IDLE task */ - - /* - * Don't zero out the workspace since it is in the BSS under UNIX. - */ - - Cpu_table.do_zero_of_workspace = FALSE; - /* * XXX; interrupt stack not currently used, so this doesn't matter */ Cpu_table.interrupt_stack_size = CONFIGURE_INTERRUPT_STACK_MEMORY; - Cpu_table.extra_mpci_receive_server_stack = 0; - /* * Add 1 extension for MPCI_fatal */ -- cgit v1.2.3