summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/sparc/leon3/startup/bspstart.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2018-04-20bsps: Move startup files to bspsSebastian Huber1-125/+0
Adjust build support files to new directory layout. This patch is a part of the BSP source reorganization. Update #3285.
2018-04-20bsps: Convert all bsp_predriver_hook()Sebastian Huber1-0/+43
Use RTEMS_SYSINIT_ITEM() instead. Update #2408.
2017-05-14leon: allow SMP boot from any CPUMartin Aberg1-0/+5
2016-06-21sparc: Rework CPU counter supportSebastian Huber1-2/+0
Rework CPU counter support to enable use of the GR740 up-counter via %asr22 and %asr23.
2016-06-21bsp/leon3: Fix LEON3_Cpu_Index initializationSebastian Huber1-2/+12
2016-06-20bsp/leon3: Use sysinit for bsp_debug_uart_init()Sebastian Huber1-4/+0
2016-06-20bsp/leon3: Use sysinit for amba_initialize()Sebastian Huber1-5/+0
2014-10-23bsp/leon3: Fix LEON3_mp_irq definitionSebastian Huber1-0/+7
Provide it also if RTEMS_MULTIPROCESSING is defined.
2014-03-21Change all references of rtems.com to rtems.org.Chris Johns1-1/+1
2014-02-28bsp/leon3: Add and use cache register functionsSebastian Huber1-7/+2
2014-02-14bsp/leon3: Declare amba_initialize()Sebastian Huber1-2/+0
2014-02-14sparc: Add LEON3_ASR17_PROCESSOR_INDEX_SHIFTSebastian Huber1-10/+2
Add _LEON3_Get_current_processor().
2014-02-14score: Add CPU counter supportSebastian Huber1-0/+1
Add a CPU counter interface to allow access to a free-running counter. It is useful to measure short time intervals. This can be used for example to enable profiling of critical low-level functions. Add two busy wait functions rtems_counter_delay_ticks() and rtems_counter_delay_nanoseconds() implemented via the CPU counter.
2014-02-06bsp/leon3: Declare bsp_debug_uart_init() in headerSebastian Huber1-1/+1
Do not return a status.
2013-09-22leon3/.../bspstart.c: Fix missing prototype warningsJoel Sherrill1-2/+2
2012-05-11Remove All CVS Id Strings Possible Using a ScriptJoel Sherrill1-2/+0
Script does what is expected and tries to do it as smartly as possible. + remove occurrences of two blank comment lines next to each other after Id string line removed. + remove entire comment blocks which only exited to contain CVS Ids + If the processing left a blank line at the top of a file, it was removed.
2012-04-17LEON3: updated console driver for new AMBAPP layerDaniel Hellstrom1-1/+8
Signed-off-by: Daniel Hellstrom <daniel@gaisler.com>
2012-02-02LEON3: change d-cache snoop detect implementationDaniel Hellstrom1-5/+5
PR 2010/bsps The previous code only checked if d-cache snooping was implemented, however snooping may be available but not enabled which may lead to driver bugs. Signed-off-by: Daniel Hellstrom <daniel@gaisler.com>
2012-02-02White space correction.Joel Sherrill1-1/+1
2012-02-02LEON3: CPU index intialization moved to bspstart.cDaniel Hellstrom1-0/+18
PR 2009/bsps All LEON3/4 systems have a CPU-id, if on a single-CPU system the ID is always zero. On a multicore system it ranges from 0 to 15. The CPU index should always by updated even in a non-MP RTEMS OS since the CPU running RTEMS may not always be CPU0. For example when RTEMS runs on CPU1 and Linux on CPU0 in a mixed ASMP system. The old code executed within the IRQ controller initialization code makes no sense since the ASR register is a CPU register, it has nothing to do with AMBA initialization either. Signed-off-by: Daniel Hellstrom <daniel@gaisler.com>
2011-02-112011-02-11 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius1-1/+1
* amba/amba.c, include/tm27.h, shmsupp/lock.c, startup/bspstart.c, startup/spurious.c: Use "__asm__" instead of "asm" for improved c99-compliance.
2010-05-242010-05-24 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill1-0/+5
* Makefile.am, amba/amba.c, console/console.c, console/debugputs.c, startup/bspstart.c: Rework initialization order so AMBA bus is scanned earlier. This lets us look for UARTs earlier and support printk as early as bsp_start() returning.
2009-11-29Whitespace removal.Ralf Corsepius1-5/+5
2009-11-232009-11-23 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill1-12/+0
* Makefile.am, startup/bspstart.c: Use ../../sparc/shared/bsppretaskinghook.c. * console/console.c: Remove sis comment.
2008-09-152008-09-14 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill1-32/+0
* Makefile.am, startup/bspstart.c: Use shared bsp_get_work_area() into its own file and use BSP Framework to perform more initialization.
2008-08-18Remove bogus local declarations.Ralf Corsepius1-6/+3
2008-07-24Changed bsp_get_workarea() to bsp_get_work_area() andThomas Doerfler1-7/+10
added support for an optional separate heap area.
2008-05-152008-05-15 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill1-39/+29
* Makefile.am, configure.ac, startup/bspstart.c: Add capability for bootcard.c BSP Initialization Framework to ask the BSP where it has memory for the RTEMS Workspace and C Program Heap. These collectively are referred to as work area. If the BSP supports this, then it does not have to include code to split the available memory between the two areas. This reduces the amount of code in the BSP specific bspstart.c file. Additionally, the shared framework can initialize the C Library, call rtems_debug_enable(), and dirty the work area memory. Until most/all BSPs support this new capability, if the BSP supports this, it should call RTEMS_BSP_BOOTCARD_HANDLES_RAM_ALLOCATION from its configure.ac. When the transition is complete, this autoconf macro can be removed.
2008-05-122008-05-12 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill1-3/+0
* startup/bspstart.c: Refactored and renamed initialization routines to rtems_initialize_data_structures, rtems_initialize_before_drivers, rtems_initialize_device_drivers, and rtems_initialize_start_multitasking. This opened the sequence up so that bootcard() could provide a more robust and flexible framework which is easier to explain and understand. This also lays the groundwork for sharing the division of available memory between the RTEMS workspace and heap and the C library initialization across all BSPs.
2007-12-112007-12-11 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill1-13/+3
* clock/ckinit.c, include/bsp.h, startup/bspstart.c: Eliminate copies of the Configuration Table. Use the RTEMS provided accessor macros to obtain configuration fields.
2007-12-042007-12-04 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill1-7/+0
* amba/amba.c, clock/ckinit.c, console/console.c, include/bsp.h, startup/bspstart.c, timer/timer.c: Move interrupt_stack_size field from CPU Table to Configuration Table. Eliminate CPU Table from all ports. Delete references to CPU Table in all forms.
2007-12-032007-12-03 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill1-12/+1
* amba/amba.c, 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-09-062007-09-05 Daniel Hellstrom <daniel@gaisler.com>Joel Sherrill1-0/+27
* include/bsp.h, startup/bspstart.c: LEON2 and LEON3 Data cache snooping detection on startup, for drivers. (LEON2,3 are configurable processors, they can be with or without DCache snooping. Caches without snooping needs the drivers to flush cache or use the sparc instruction lda to force cache miss...)
2007-05-112007-05-11 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill1-3/+2
* include/bsp.h, startup/bspstart.c, startup/spurious.c: hello and ticker now run using runtest.
2007-05-092007-05-09 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill1-1/+1
* console/debugputs.c, include/bsp.h, leon_smc91111/leon_smc91111.c, startup/bspstart.c, startup/spurious.c: Remove debug print methods that are redundant with prntk and replace their use with printk.
2007-03-112007-03-11 Joel Sherrill <joel@OARcorp.com>Joel Sherrill1-7/+0
* startup/bspstart.c: Remove assignments of Cpu_table.do_zero_of_workspace to TRUE since TRUE is the default value in boot_card.c
2006-11-162006-11-16 Joel Sherrill <joel@OARcorp.com>Joel Sherrill1-106/+1
* clock/ckinit.c, startup/bspstart.c: Use common clock driver template and eliminate all fast idle code specific to this BSP. This eliminates a fair amount of code in the BSP clock driver and bsp_startup. The LEON3 has to do a scan of the AMBA bus to find the timer so I added the new hook Clock_driver_support_find_timer to support this. In general, there was some clean up to the file headers of various files.
2006-01-09Backport from rtems-4-6-branch.Ralf Corsepius1-15/+15
2004-04-21Remove duplicate white lines.Ralf Corsepius1-1/+0
2004-04-21Remove stray white spaces.Ralf Corsepius1-9/+9
2004-03-312004-03-31 Ralf Corsepius <ralf_corsepius@rtems.org>Ralf Corsepius1-8/+8
* bspstart.c, gnatcommon.c: Convert to using c99 fixed size types.
2003-09-262003-09-26 Joel Sherrill <joel@OARcorp.com>Joel Sherrill1-5/+2
* bspstart.c: Obsoleting HP PA-RISC port and removing all references.
2003-09-042003-09-04 Joel Sherrill <joel@OARcorp.com>Joel Sherrill1-1/+1
* bspclean.c, bspstart.c: URL for license changed.
2000-11-132000-11-13 Jiri Gaisler <jgais@ws.estec.esa.nl>Joel Sherrill1-67/+38
* ChangeLog, .cvsignore, Makefile.am, bspclean.c, bspstart.c, gnatcommon.c, start.S: New files. Largely moved from ERC32 BSP to be able to be shared with LEON and other SPARC BSPs.
2000-11-012000-11-01 Joel Sherrill <joel@OARcorp.com>Joel Sherrill1-5/+4
* startup/bspstart.c: assoc.h, error.h, libio_.h, libio.h, and libcsupport.h moved from libc to lib/include/rtems and now must be referenced as <rtems/XXX.h>. Header file order was cleaned up while doing this.
2000-06-12Merged from 4.5.0-beta3aJoel Sherrill1-7/+1
1999-11-17Updated copyright notice.Joel Sherrill1-1/+1
1998-04-30Removed tripling of workspace API when POSIX API is enabled. confdefs.hJoel Sherrill1-1/+3
is now correct enough where this is not necessary. This was in to cover up the deficiencies in figuring out how much memory a GNAT/RTEMS application required. There is a good stab at this now.
1998-04-18psim now runs in both debug and non-debug mode.Joel Sherrill1-4/+3
1998-04-15Numerous changes which in total greatly reduced the amount of sourceJoel Sherrill1-28/+4
code in each BSP's bspstart.c. These changes were: + confdefs.h now knows libio's semaphore requirements + shared/main.c now copies Configuration to BSP_Configuration + shared/main.c fills in the Cpu_table with default values This removed the need for rtems_libio_config() and the constant BSP_LIBIO_MAX_FDS in every BSP. Plus now the maximum number of open files can now be set on the gcc command line.