summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/sparc/shared (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Fix broken _endtext symbolSebastian Huber2012-07-161-2/+2
|
* sparc linkcmds.base: Add new FreeBSD TCP/IP stack sectionsJoel Sherrill2012-07-141-11/+24
|
* pci.h cleanup - Consolidate common defines to cpukit pci.hJoel Sherrill2012-05-162-1135/+3
| | | | | | | | | | | | | + libbsp/sparc/shared/include/pci.h was largely a copy of an older version of the cpukit pci.h. Removed much of the contents and included <rtems/pci.h>. + sparc/*/pci*.c - Move to <rtems/pci.h> required updating to use uint32_t for dword accesses. + Rename PCI_MULTI_FUNCTION to PCI_HEADER_TYPE_MULTI_FUNCTION + Define PCI_HEADER_TYPE_MULTI_FUNCTION in cpukit pci.h and remove PCI_MULTI_FUNCTION definitions in C files. + Move PCI_INVALID_VENDORDEVICEID definitions from various C files to cpukit pci.h
* LEON: moved register definitions into grlib header fileDaniel Hellstrom2012-05-167-57/+110
| | | | | | | | | | | | Some register layout definitions for LEON3 reside in ambapp.h which does not really has anything to do with device registers. The register structures has been incorrectly named LEON3_*, the cores are not only used on LEON3 but on LEON4 and perhaps on LEON5 when that day comes. Some structures has been renamed according to the GRLIB core name instead, which CPU that actually use it is not relevant. Drivers has been updated with the new names. Signed-off-by: Daniel Hellstrom <daniel@gaisler.com>
* Remove All CVS Id Strings Possible Using a ScriptJoel Sherrill2012-05-1112-17/+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.
* LEON: updated drivers to use new AMBAPP LayerDaniel Hellstrom2012-04-1729-225/+222
| | | | | | | The drivers are updated to use the new AMBA layer, however the backwards-compatibility interface (ambapp_old) is used. Signed-off-by: Daniel Hellstrom <daniel@gaisler.com>
* LEON: updated AMBA PnP APIDaniel Hellstrom2012-04-1712-610/+1758
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The old layer had some limitations/problems for multiple AHB buses since the data structure containing all AMBA devices were allocated before scanning. The new layer create devices as they are found and memory is allocated using malloc() or bsp_early_malloc() during booting. The old 8 functions for finding a specific AHB-Slave or APB-Slave device has been replaced with one function, ambapp_for_each(), which iterates over all devices matching the specified search options and calls a user provided function. The new way lowers the footprint and makes searching more flexible. The frequency information is now supported, if the frequency of one device is reported by the user. More AHB-to-AHB bridges are supported. The API has been split into several parts in order to lower the footprint. The API also introduces the AMBAPP CORE concept, where one ambapp_core can be created from one AHB Master, AHB Slave and one APB Slave, at least one device is required for creating a core. Signed-off-by: Daniel Hellstrom <daniel@gaisler.com>
* LEON3: added IRQAMP supportDaniel Hellstrom2012-04-061-3/+4
|
* SPARC BSPs: implemented shared-irq using libbsp/shared layerDaniel Hellstrom2012-04-062-0/+85
| | | | | | | | | | | | | | | The implementation use IRQ number instead of vector number since some IRQs does not have a unique vector, for example the extended interrupts all enter the same trap vector entry. Added support for the LEON3 extended interrupt controller when using the shared IRQ layer. ERC32 patches untested. Signed-off-by: Daniel Hellstrom <daniel@gaisler.com> Regenerate
* SPARC: bsp_early_malloc() routine for startup memory allocationDaniel Hellstrom2012-03-292-4/+55
| | | | | | | | | | | | If bsp_early_malloc() is called early during boot room will be allocated after BSS END. If the function is called after boot is will call malloc() instead. The returned memory is not freeable and always 8-byte aligned. If the bsp_early_malloc() isn't called the function is not dragged in and the workspace will be unmodified in size. Signed-off-by: Daniel Hellstrom <daniel@gaisler.com>
* 2011-10-26 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2011-10-261-4/+4
| | | | * shared/can/occan.c: Comment out unused var "tmp".
* 2011-10-07 Daniel Hellstrom <daniel@gaisler.com>Joel Sherrill2011-10-071-15/+6
| | | | | | | | | | | PR 1933/cpukit * shared/irq_asm.S: From code inspection I have found the following issues (most SMP), and some improvements in irq_asm.S. I would need a long test with interrupts to verify the interrupt handler better, however I can not see that these patches hurt. Please see comment per hunk below, One should go through the file to indent delay-slots correctly, I have fixed some in the patch areas. An extra space is added in front of delay slots to indicate a delay slot.
* 2011-07-28 Jennifer Averett <Jennifer.Averett@OARcorp.com>Jennifer Averett2011-07-281-64/+93
| | | | | | PR 1801 * shared/irq_asm.S: Modifications to synch the sparc with the smp working tree.
* 2011-06-28 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2011-06-281-5/+37
| | | | | | | Jennifer Averett <jennifer.averett@OARcorp.com> PR 1801/bsps * shared/start.S: Add SMP support to LEON3 BSP.
* 2011-03-16 Jennifer Averett <jennifer.averett@OARcorp.com>Joel Sherrill2011-03-161-0/+589
| | | | | PR 1729/cpukit * shared/irq_asm.S: New file.
* 2011-02-11 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2011-02-115-7/+7
| | | | | | * shared/1553/b1553brm.c, shared/can/grcan.c, shared/can/occan.c, shared/spw/grspw.c, shared/uart/apbuart.c: Use "__asm__" instead of "asm" for improved c99-compliance.
* 2010-08-03 Joel Sherrill <joel.sherrilL@OARcorp.com>Joel Sherrill2010-08-031-4/+4
| | | | * shared/bspgetworkarea.c: Formatting.
* 2010-05-11 Sebastian Huber <sebastian.huber@embedded-brains.de>Sebastian Huber2010-05-111-0/+182
| | | | * shared/startup/linkcmds.base: New file.
* 2010-04-07 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2010-04-071-0/+2
| | | | | | * shared/spw/grspw_rasta.c: Guard prototype of grspw_rasta_calc_memoffs in #ifdef GRSPW_STATIC_MEM to avoid warning.
* #include <unistd.h>.Ralf Corsepius2010-04-021-0/+2
|
* 2009-12-11 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2009-12-111-2/+2
| | | | | PR 1483/cpukit * shared/include/pci.h: Rename pci_config into rtems_pci_config_t.
* Whitespace removal.Ralf Corsepius2009-11-2934-1175/+1175
|
* 2009-11-23 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill2009-11-232-68/+28
| | | | | * shared/bsppretaskinghook.c: New file. Was really common. * shared/bspstart.c: Removed. Was really leon2 specific.
* 2009-10-10 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2009-10-101-0/+32
| | | | * shared/bspgetworkarea.c: Add debug prints of memory information.
* 2009-09-29 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2009-09-291-3/+3
| | | | | * shared/include/pci.h: Add prototypes for BusCountPCI(void), init_pci(void).
* 2009-09-28 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2009-09-281-6/+6
| | | | * shared/include/pci.h: Revert extern inline patch.
* 2009-09-25 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2009-09-251-6/+6
| | | | * shared/include/pci.h: Change extern inline to static inline.
* 2009-08-28 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill2009-08-281-1/+1
| | | | * shared/start.S: Fix comment.
* 2009-05-08 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2009-05-081-4/+4
| | | | | | * shared/bspgetworkarea.c: Switch from ssize_t to uintptr_t for bsp_get_work_area() since the work area is larger than a single allocatable object.
* 2009-05-03 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2009-05-041-5/+0
| | | | * shared/start.S: Checked and OK.
* 2009-04-28 Chris Johns <chrisj@rtems.org>Chris Johns2009-04-281-3/+6
| | | | * shared/start/start.S: Update for boot_card command line change.
* 2009-02-27 Daniel Hellstrom <daniel@gaisler.com>Joel Sherrill2009-02-271-1/+1
| | | | | | PR 1386/bsps * shared/start.S: Stack space not correctly initialized. Causes failures on unoptimized applications.
* 2008-12-18 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2008-12-181-2/+3
| | | | * libchip/serial/ns16550_p.h: Remove prototype with no implementation.
* 2008-10-02 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2008-10-021-4/+4
| | | | | | * shared/bspgetworkarea.c: Change size_t to ssize_t on bsp_get_work_area(). On 16-bit architectures, size_t can be 16-bits which would limit the work area to 64K.
* 2008-09-23 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2008-09-231-36/+0
| | | | * shared/bspclean.c: Removed.
* 2008-09-16 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2008-09-161-4/+0
| | | | | * shared/bspstart.c: Remove unnecessary includes of rtems/libcsupport.h and rtems/libio.h.
* 2008-09-15 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2008-09-152-23/+39
| | | | | | * shared/bspstart.c: Use shared bsp_get_work_area() in its own file and rely on BSP Framework to perform more initialization. * shared/bspgetworkarea.c: New file.
* Remove bogus local declaration.Ralf Corsepius2008-08-181-2/+0
|
* Changed bsp_get_workarea() to bsp_get_work_area() andThomas Doerfler2008-07-241-7/+10
| | | | added support for an optional separate heap area.
* 2008-05-15 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill2008-05-152-78/+45
| | | | | | | | | | | | | | * shared/bspstart.c, shared/start.S: 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-12 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill2008-05-121-1/+0
| | | | | | | | | | | | * shared/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.
* 2008-05-06 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill2008-05-061-1/+1
| | | | * shared/start.S: Spacing.
* 2007-12-11 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill2007-12-111-11/+3
| | | | | * shared/bspstart.c: Eliminate copies of the Configuration Table. Use the RTEMS provided accessor macros to obtain configuration fields.
* 2007-12-06 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill2007-12-061-9/+0
| | | | * shared/include/grcan_spwrtc.h: Removed.
* 2007-12-05 Daniel Hellstrom <daniel@gaisler.com>Joel Sherrill2007-12-051-15/+13
| | | | * shared/include/ambapp.h: Sync head and 4.8 branch.
* 2007-12-04 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill2007-12-041-8/+0
| | | | | | * shared/bspstart.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-03 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill2007-12-031-9/+0
| | | | | | | | | * shared/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 Daniel Hellstrom <daniel@gaisler.com>Joel Sherrill2007-11-302-52/+136
| | | | | | * shared/include/grspw.h, shared/spw/grspw.c: GRSPW SpaceWire Driver. Fixes typecast to volatile integer instead of to integer. Added scanning for GRSPW2 Core, The GRSPW2 core is run in legacy mode.
* 2007-11-30 Daniel Hellstrom <daniel@gaisler.com>Joel Sherrill2007-11-301-2/+16
| | | | | | | * shared/can/occan.c: LEON2/3 OCCAN CAN driver. Fixes typecast to volatile integer where needed. Fixes bug where closing the driver and opening it again could make the driver not starting transmission due to the software fifo was not cleared.
* 2007-11-30 Daniel Hellstrom <daniel@gaisler.com>Joel Sherrill2007-11-303-41/+175
| | | | | | | | | * shared/can/grcan.c, shared/can/grcan_rasta.c, shared/include/ambapp.h: GRCAN CAN driver. Fixes Interrupt enabling/disabling in the driver, interrupt may not be restored correctly. Implements the baud rate calculation routine. Removed unnecessary printk. Fixed scanning to support GRCAN and GRHCAN hardware. Added GRCAN device number to ambapp.h.