diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2007-12-03 22:26:33 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2007-12-03 22:26:33 +0000 |
commit | 558bc253bc228fc71b9bf304a111a941862f431d (patch) | |
tree | 54e012dbb641683c39b7877c223e0a15a1323571 /c/src/lib/libbsp/powerpc | |
parent | 2007-12-03 Joel Sherrill <joel.sherrill@OARcorp.com> (diff) | |
download | rtems-558bc253bc228fc71b9bf304a111a941862f431d.tar.bz2 |
2007-12-03 Joel Sherrill <joel.sherrill@OARcorp.com>
* 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.
Diffstat (limited to '')
-rw-r--r-- | c/src/lib/libbsp/powerpc/gen83xx/ChangeLog | 10 | ||||
-rw-r--r-- | c/src/lib/libbsp/powerpc/gen83xx/Makefile.am | 3 | ||||
-rw-r--r-- | c/src/lib/libbsp/powerpc/gen83xx/startup/bspstart.c | 8 | ||||
-rw-r--r-- | c/src/lib/libbsp/powerpc/mpc8260ads/ChangeLog | 10 | ||||
-rw-r--r-- | c/src/lib/libbsp/powerpc/mpc8260ads/Makefile.am | 4 | ||||
-rw-r--r-- | c/src/lib/libbsp/powerpc/mpc8260ads/startup/bspstart.c | 6 | ||||
-rw-r--r-- | c/src/lib/libbsp/powerpc/psim/ChangeLog | 10 | ||||
-rw-r--r-- | c/src/lib/libbsp/powerpc/psim/Makefile.am | 5 | ||||
-rw-r--r-- | c/src/lib/libbsp/powerpc/psim/startup/bspstart.c | 15 | ||||
-rw-r--r-- | c/src/lib/libbsp/powerpc/score603e/ChangeLog | 10 | ||||
-rw-r--r-- | c/src/lib/libbsp/powerpc/score603e/Makefile.am | 2 | ||||
-rw-r--r-- | c/src/lib/libbsp/powerpc/score603e/startup/bspstart.c | 11 | ||||
-rw-r--r-- | c/src/lib/libbsp/powerpc/ss555/ChangeLog | 10 | ||||
-rw-r--r-- | c/src/lib/libbsp/powerpc/ss555/Makefile.am | 6 | ||||
-rw-r--r-- | c/src/lib/libbsp/powerpc/ss555/startup/bspstart.c | 2 |
15 files changed, 67 insertions, 45 deletions
diff --git a/c/src/lib/libbsp/powerpc/gen83xx/ChangeLog b/c/src/lib/libbsp/powerpc/gen83xx/ChangeLog index cb00238c87..46a0ed664b 100644 --- a/c/src/lib/libbsp/powerpc/gen83xx/ChangeLog +++ b/c/src/lib/libbsp/powerpc/gen83xx/ChangeLog @@ -1,3 +1,13 @@ +2007-12-03 Joel Sherrill <joel.sherrill@OARcorp.com> + + * 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-11-30 Till Straumann <strauman@slac.stanford.edu> * startup/bspstart: removed _Cpu_table.exceptions_in_RAM. diff --git a/c/src/lib/libbsp/powerpc/gen83xx/Makefile.am b/c/src/lib/libbsp/powerpc/gen83xx/Makefile.am index ddf23f28e3..040bffaefc 100644 --- a/c/src/lib/libbsp/powerpc/gen83xx/Makefile.am +++ b/c/src/lib/libbsp/powerpc/gen83xx/Makefile.am @@ -45,8 +45,7 @@ mpc83xx_regs_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) noinst_PROGRAMS += startup.rel startup_rel_SOURCES = ../../shared/bspclean.c ../../shared/bsplibc.c \ ../../shared/bsppost.c startup/bspstart.c ../../shared/bootcard.c \ - ../../shared/sbrk.c \ - ../../shared/gnatinstallhandler.c startup/cpuinit.c + ../../shared/sbrk.c ../../shared/gnatinstallhandler.c startup/cpuinit.c startup_rel_CPPFLAGS = $(AM_CPPFLAGS) startup_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) diff --git a/c/src/lib/libbsp/powerpc/gen83xx/startup/bspstart.c b/c/src/lib/libbsp/powerpc/gen83xx/startup/bspstart.c index 592abf9085..1c72afb5f3 100644 --- a/c/src/lib/libbsp/powerpc/gen83xx/startup/bspstart.c +++ b/c/src/lib/libbsp/powerpc/gen83xx/startup/bspstart.c @@ -200,17 +200,15 @@ void bsp_start(void) _write_SPRG1((unsigned int)intrStack); - /* Signal them that this BSP has fixed PR288 - eventually, this should go away */ + /* Signal them that this BSP has fixed PR288 - eventually, this should + * go away + */ _write_SPRG0(PPC_BSP_HAS_FIXED_PR288); /* * initialize the CPU table for this BSP */ - Cpu_table.pretasking_hook = bsp_pretasking_hook; /* init libc, etc. */ - Cpu_table.predriver_hook = bsp_predriver_hook; /* init PCI / RTC ... */ - Cpu_table.postdriver_hook = bsp_postdriver_hook; - if( Cpu_table.interrupt_stack_size < 4*1024 ) Cpu_table.interrupt_stack_size = 4 * 1024; diff --git a/c/src/lib/libbsp/powerpc/mpc8260ads/ChangeLog b/c/src/lib/libbsp/powerpc/mpc8260ads/ChangeLog index 90b307a94d..e5ea713982 100644 --- a/c/src/lib/libbsp/powerpc/mpc8260ads/ChangeLog +++ b/c/src/lib/libbsp/powerpc/mpc8260ads/ChangeLog @@ -1,3 +1,13 @@ +2007-12-03 Joel Sherrill <joel.sherrill@OARcorp.com> + + * 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-11-30 Till Straumann <strauman@slac.stanford.edu> * irq/irq.h, irq/irq_init.c: Removed the definition diff --git a/c/src/lib/libbsp/powerpc/mpc8260ads/Makefile.am b/c/src/lib/libbsp/powerpc/mpc8260ads/Makefile.am index 2153043754..d901569f5b 100644 --- a/c/src/lib/libbsp/powerpc/mpc8260ads/Makefile.am +++ b/c/src/lib/libbsp/powerpc/mpc8260ads/Makefile.am @@ -49,8 +49,8 @@ include_bsp_HEADERS += vectors/vectors.h noinst_PROGRAMS += startup.rel startup_rel_SOURCES = ../../shared/bspclean.c ../../shared/bsplibc.c \ - ../../shared/bsppost.c startup/bspstart.c ../../shared/bootcard.c \ - ../../shared/sbrk.c \ + ../../shared/bsppredriverhook.c ../../shared/bsppost.c \ + startup/bspstart.c ../../shared/bootcard.c ../../shared/sbrk.c \ ../../shared/gnatinstallhandler.c startup/cpuinit.c startup_rel_CPPFLAGS = $(AM_CPPFLAGS) startup_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) diff --git a/c/src/lib/libbsp/powerpc/mpc8260ads/startup/bspstart.c b/c/src/lib/libbsp/powerpc/mpc8260ads/startup/bspstart.c index 45e80f284a..1e767cef42 100644 --- a/c/src/lib/libbsp/powerpc/mpc8260ads/startup/bspstart.c +++ b/c/src/lib/libbsp/powerpc/mpc8260ads/startup/bspstart.c @@ -294,16 +294,10 @@ void bsp_start(void) BSP_Configuration.work_space_start = (void *)&_WorkspaceBase; -/* - BSP_Configuration.microseconds_per_tick = 1000; -*/ - /* * initialize the CPU table for this BSP */ - Cpu_table.pretasking_hook = bsp_pretasking_hook; /* init libc, etc. */ - Cpu_table.postdriver_hook = bsp_postdriver_hook; if( Cpu_table.interrupt_stack_size < 4*1024 ) Cpu_table.interrupt_stack_size = 4 * 1024; diff --git a/c/src/lib/libbsp/powerpc/psim/ChangeLog b/c/src/lib/libbsp/powerpc/psim/ChangeLog index a04cd4566f..acd7cf2e3c 100644 --- a/c/src/lib/libbsp/powerpc/psim/ChangeLog +++ b/c/src/lib/libbsp/powerpc/psim/ChangeLog @@ -1,3 +1,13 @@ +2007-12-03 Joel Sherrill <joel.sherrill@OARcorp.com> + + * 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-12-02 Till Straumann <strauman@slac.stanford.edu> * irq/no_pic.c: use new inline routine exported by diff --git a/c/src/lib/libbsp/powerpc/psim/Makefile.am b/c/src/lib/libbsp/powerpc/psim/Makefile.am index 9a72f9121c..ca0e577619 100644 --- a/c/src/lib/libbsp/powerpc/psim/Makefile.am +++ b/c/src/lib/libbsp/powerpc/psim/Makefile.am @@ -39,8 +39,8 @@ dist_project_lib_DATA += startup/linkcmds noinst_PROGRAMS += startup.rel startup_rel_SOURCES = startup/bspclean.c ../../shared/bsplibc.c \ - ../../shared/bsppost.c startup/bspstart.c ../../shared/bootcard.c \ - ../../shared/sbrk.c \ + ../../shared/bsppost.c ../../shared/bsppredriverhook.c \ + startup/bspstart.c ../../shared/bootcard.c ../../shared/sbrk.c \ ../../shared/gnatinstallhandler.c startup_rel_CPPFLAGS = $(AM_CPPFLAGS) startup_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) @@ -104,6 +104,7 @@ libbsp_a_LIBADD += \ startup_rel-bspclean.o \ startup_rel-bsplibc.o \ startup_rel-bsppost.o \ +startup_rel-bsppredriverhook.o \ startup_rel-bspstart.o \ startup_rel-bootcard.o \ startup_rel-sbrk.o \ diff --git a/c/src/lib/libbsp/powerpc/psim/startup/bspstart.c b/c/src/lib/libbsp/powerpc/psim/startup/bspstart.c index 914bee9c7a..a8f3090240 100644 --- a/c/src/lib/libbsp/powerpc/psim/startup/bspstart.c +++ b/c/src/lib/libbsp/powerpc/psim/startup/bspstart.c @@ -147,21 +147,6 @@ void bsp_start( void ) * they can use atexit() */ - Cpu_table.pretasking_hook = bsp_pretasking_hook; /* init libc, etc. */ - Cpu_table.postdriver_hook = bsp_postdriver_hook; - - /* - * Is this true? - * - * PSIM 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. - * - * It is true that it takes simulated time to clear the memory. - */ - - Cpu_table.do_zero_of_workspace = FALSE; - Cpu_table.interrupt_stack_size = CONFIGURE_INTERRUPT_STACK_MEMORY; BSP_bus_frequency = (unsigned int)&PSIM_INSTRUCTIONS_PER_MICROSECOND; diff --git a/c/src/lib/libbsp/powerpc/score603e/ChangeLog b/c/src/lib/libbsp/powerpc/score603e/ChangeLog index 128a43bc7c..9b79d7cdc1 100644 --- a/c/src/lib/libbsp/powerpc/score603e/ChangeLog +++ b/c/src/lib/libbsp/powerpc/score603e/ChangeLog @@ -1,3 +1,13 @@ +2007-12-03 Joel Sherrill <joel.sherrill@OARcorp.com> + + * 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-11-30 Till Straumann <strauman@slac.stanford.edu> * startup/bspstart: removed _Cpu_table.exceptions_in_RAM. diff --git a/c/src/lib/libbsp/powerpc/score603e/Makefile.am b/c/src/lib/libbsp/powerpc/score603e/Makefile.am index 73062360dd..1b882e801a 100644 --- a/c/src/lib/libbsp/powerpc/score603e/Makefile.am +++ b/c/src/lib/libbsp/powerpc/score603e/Makefile.am @@ -27,7 +27,7 @@ dist_project_lib_DATA += startup/linkcmds noinst_PROGRAMS += startup.rel startup_rel_SOURCES = startup/bspclean.c ../../shared/bsplibc.c \ - ../../shared/bsppost.c startup/bspstart.c ../../shared/bootcard.c \ + startup/bspstart.c ../../shared/bootcard.c \ ../../shared/sbrk.c startup/Hwr_init.c \ startup/genpvec.c ../../shared/gnatinstallhandler.c startup_rel_CPPFLAGS = $(AM_CPPFLAGS) diff --git a/c/src/lib/libbsp/powerpc/score603e/startup/bspstart.c b/c/src/lib/libbsp/powerpc/score603e/startup/bspstart.c index fb6d4b330a..e17bb625f6 100644 --- a/c/src/lib/libbsp/powerpc/score603e/startup/bspstart.c +++ b/c/src/lib/libbsp/powerpc/score603e/startup/bspstart.c @@ -195,16 +195,17 @@ void initialize_PMC() { /*PAGE * - * SCORE603e_bsp_postdriver_hook + * bsp_postdriver_hook * * Standard post driver hook plus some BSP specific stuff. */ -void SCORE603e_bsp_postdriver_hook(void) +void bsp_postdriver_hook(void) { extern void Init_EE_mask_init(void); + extern void open_dev_console(void); - bsp_postdriver_hook(); + open_dev_console(); Init_EE_mask_init(); } @@ -308,11 +309,7 @@ void bsp_start( void ) * initialize the CPU table for this BSP */ - Cpu_table.pretasking_hook = bsp_pretasking_hook; /* init libc, etc. */ - Cpu_table.predriver_hook = bsp_predriver_hook; /* Init vectors */ - Cpu_table.postdriver_hook = SCORE603e_bsp_postdriver_hook; Cpu_table.interrupt_stack_size = CONFIGURE_INTERRUPT_STACK_MEMORY; - Cpu_table.idle_task_stack_size = (3 * STACK_MINIMUM_SIZE); bsp_clicks_per_usec = 66 / 4; /* XXX get from linkcmds */ diff --git a/c/src/lib/libbsp/powerpc/ss555/ChangeLog b/c/src/lib/libbsp/powerpc/ss555/ChangeLog index 26f6a9c456..a81edc7741 100644 --- a/c/src/lib/libbsp/powerpc/ss555/ChangeLog +++ b/c/src/lib/libbsp/powerpc/ss555/ChangeLog @@ -1,3 +1,13 @@ +2007-12-03 Joel Sherrill <joel.sherrill@OARcorp.com> + + * 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-11-28 Joel Sherrill <joel.sherrill@OARcorp.com> * startup/bspstart.c: Eliminate PowerPC specific elements from the CPU diff --git a/c/src/lib/libbsp/powerpc/ss555/Makefile.am b/c/src/lib/libbsp/powerpc/ss555/Makefile.am index fb07b1a819..2238395f24 100644 --- a/c/src/lib/libbsp/powerpc/ss555/Makefile.am +++ b/c/src/lib/libbsp/powerpc/ss555/Makefile.am @@ -38,9 +38,9 @@ console_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) noinst_PROGRAMS += startup.rel startup_rel_SOURCES = ../../shared/bspclean.c ../../shared/bsplibc.c \ - ../../shared/bsppost.c startup/bspstart.c ../../shared/bootcard.c \ - startup/iss555.c ../../shared/sbrk.c \ - ../../shared/gnatinstallhandler.c startup/start.S + ../../shared/bsppost.c ../../shared/bsppredriverhook.c \ + startup/bspstart.c ../../shared/bootcard.c startup/iss555.c \ + ../../shared/sbrk.c ../../shared/gnatinstallhandler.c startup/start.S startup_rel_CPPFLAGS = $(AM_CPPFLAGS) startup_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) diff --git a/c/src/lib/libbsp/powerpc/ss555/startup/bspstart.c b/c/src/lib/libbsp/powerpc/ss555/startup/bspstart.c index a45f7716f0..6a26500bea 100644 --- a/c/src/lib/libbsp/powerpc/ss555/startup/bspstart.c +++ b/c/src/lib/libbsp/powerpc/ss555/startup/bspstart.c @@ -187,8 +187,6 @@ 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; if( Cpu_table.interrupt_stack_size < 4 * 1024 ) Cpu_table.interrupt_stack_size = 4 * 1024; |