From 558bc253bc228fc71b9bf304a111a941862f431d Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Mon, 3 Dec 2007 22:26:33 +0000 Subject: 2007-12-03 Joel Sherrill * Makefile.am, 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/c4x/c4xsim/ChangeLog | 10 ++++++++++ c/src/lib/libbsp/c4x/c4xsim/Makefile.am | 1 + c/src/lib/libbsp/c4x/c4xsim/startup/bspstart.c | 15 --------------- 3 files changed, 11 insertions(+), 15 deletions(-) (limited to 'c/src/lib/libbsp/c4x') diff --git a/c/src/lib/libbsp/c4x/c4xsim/ChangeLog b/c/src/lib/libbsp/c4x/c4xsim/ChangeLog index a8a07b29a1..ea1587fcea 100644 --- a/c/src/lib/libbsp/c4x/c4xsim/ChangeLog +++ b/c/src/lib/libbsp/c4x/c4xsim/ChangeLog @@ -1,3 +1,13 @@ +2007-12-03 Joel Sherrill + + * Makefile.am, 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-05-11 Ralf Corsépius * clock/clock.c: include . diff --git a/c/src/lib/libbsp/c4x/c4xsim/Makefile.am b/c/src/lib/libbsp/c4x/c4xsim/Makefile.am index d1a452f094..1383fb6480 100644 --- a/c/src/lib/libbsp/c4x/c4xsim/Makefile.am +++ b/c/src/lib/libbsp/c4x/c4xsim/Makefile.am @@ -33,6 +33,7 @@ dist_project_lib_DATA += startup/linkcmds noinst_PROGRAMS += startup.rel startup_rel_SOURCES = ../../shared/bspclean.c ../../shared/bsplibc.c \ + ../../shared/bsppredriverhook.c \ ../../shared/bsppost.c startup/bspstart.c \ ../../shared/bootcard.c ../../shared/sbrk.c ../../shared/setvec.c \ ../../c4x/shared/c3xspurious.c ../../c4x/shared/c4xspurious.c \ diff --git a/c/src/lib/libbsp/c4x/c4xsim/startup/bspstart.c b/c/src/lib/libbsp/c4x/c4xsim/startup/bspstart.c index 6db1c3f47b..75bbb036ee 100644 --- a/c/src/lib/libbsp/c4x/c4xsim/startup/bspstart.c +++ b/c/src/lib/libbsp/c4x/c4xsim/startup/bspstart.c @@ -75,21 +75,6 @@ void bsp_start( void ) { extern void *_WorkspaceBase; extern uint32_t _WorkspaceMax; - /* - * Set up our hooks - * Make sure libc_init is done before drivers initialized so that - * they can use atexit() - */ - - Cpu_table.pretasking_hook = bsp_pretasking_hook; /* init libc, etc. */ - Cpu_table.postdriver_hook = bsp_postdriver_hook; - - /* - * SIS does zero out memory BUT only when IT begins execution. Thus - * if we want to have a clean slate in the workspace each time we - * begin execution of OUR application, then we must zero the workspace. - */ - Cpu_table.do_zero_of_workspace = FALSE; /* * This should be enough interrupt stack. -- cgit v1.2.3