summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/shared (follow)
Commit message (Collapse)AuthorAgeFilesLines
* 2008-05-23 Till Straumann <strauman@slac.stanford.edu>Till Straumann2008-05-232-1/+6
| | | | | * vmeUniverse/VME.h: removed 'weak' attribute from declaration of BSP_vme_config().
* 2008-05-22 Till Straumann <strauman@slac.stanford.edu>Till Straumann2008-05-222-2/+8
| | | | | * vmeUniverse/vmeUniverse.c: fixed compiler warning; moved struct attributes as directed by gcc warning.
* 2008-05-15 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill2008-05-153-8/+164
| | | | | | | | | | | | | | | * bootcard.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. * bsppretaskinghook.c: New file.
* 2008-05-12 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill2008-05-122-18/+63
| | | | | | | | | | | | * bootcard.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-062-4/+12
| | | | * bootcard.c: Improve formatting and comments.
* 2008-03-20 Till Straumann <strauman@slac.stanford.edu>Till Straumann2008-03-212-1/+6
| | | | | * vmeUniverse/vmeTsi148.c: type of 5th argument to pci_read_config_dword() is now uint32_t*.
* 2008-03-17 Till Straumann <strauman@slac.stanford.edu>Till Straumann2008-03-192-3/+53
| | | | | | | * vmeUniverse/vmeTsi148.c: Initialize VME Master 'VTON' timer and bus-release policy to less aggressive values than the chip's defaults. The default VTON easily overrides any settings used by the DMA engine.
* 2008-03-03 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill2008-03-032-24/+8
| | | | | * gdbstub/rtems-stub-glue.c: Update to use the new rtems_object_get_name() service. This simplified the code a bit.
* 2008-01-22 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill2008-01-222-12/+20
| | | | * bootcard.c: Improve comments and clean up argc/argv order.
* 2007-12-11 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill2007-12-113-28/+15
| | | | | | * bootcard.c, bsplibc.c: Eliminate copies of the Configuration Table. Use the RTEMS provided accessor macros to obtain configuration fields.
* 2007-12-04 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill2007-12-042-12/+7
| | | | | | * bootcard.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-032-0/+20
| | | | * bsppredriverhook.c: New file.
* 2007-12-03 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill2007-12-032-8/+9
| | | | | | | | | * bootcard.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>Till Straumann2007-12-023-14/+18
| | | | | | * vmeUniverse/vmeUniverse.c, vmeUniverse/vmeTsi148.c: silenced compiler warnings caused by type changes in byteorder.h (volatile unsigned * -> volatile uint32_t *)
* 2007-11-26 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2007-11-262-0/+11
| | | | * bootcard.c: Add comment.
* * vmeUniverse/vmeTsi148.c: Use size_t for sizes.Till Straumann2007-07-162-1/+5
|
* 2007-06-20 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill2007-06-202-21/+7
| | | | | * bsppost.c: Split open of the console from the standard BSP code so it is easier to stub out.
* * vmeUniverse/vmeUniverse.c: Changed types to silenceTill Straumann2007-05-112-2/+7
| | | | compiler warnings.
* Back off patch which should not have been committed.Joel Sherrill2007-05-101-1/+4
|
* 2007-05-10 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill2007-05-101-4/+1
| | | | | | | | PR 1237/rtems * src/lib/libbsp/shared/bsplibc.c: Add logic to prevent stack creep when interrupts occur at a sufficient rate that the interrupted thread never gets to clean its stack. This patch ensures that an interrupted thread will not nest ISR dispatches on its stack.
* 2007-05-09 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill2007-05-092-18/+5
| | | | | * bootcard.c: Move __fini call to inside executive for symmettry with __init call.
* 2007-04-17 Joel Sherrill <joel@OARcorp.com>Joel Sherrill2007-04-172-1/+7
| | | | | | * bootcard.c: RTEMS Workspace now defaults to not being zeroed. This significantly speeds up boot time on targets not requiring memory to be touched at boot time.
* 2007-04-02 Joel Sherrill <joel@OARcorp.com>Joel Sherrill2007-04-022-0/+34
| | | | * dummy_printk_support.c: New file.
* 2007-03-31 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2007-03-312-1/+5
| | | | * vmeUniverse/vmeUniverse.c: Use uint32_t for pci_ulong.
* 2007-03-28 Joel Sherrill <joel@OARcorp.com>Joel Sherrill2007-03-282-0/+12
| | | | | | * clockdrv_shell.c: Add support to the Clock driver template for rtems_clock_set_nanoseconds_extension and the potential for TOD and timestamps accurate to the nanosecond.
* 2007-03-28 Joel Sherrill <joel@OARcorp.com>Joel Sherrill2007-03-282-17/+31
| | | | | PR 1232/bsps * bsppost.c: It should not be a fatal error to not have a console.
* 2007-03-09 Joel Sherrill <joel@OARcorp.com>Joel Sherrill2007-03-092-1/+5
| | | | * bootcard.c: Change XXX to real comment.
* 2007-02-06 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2007-02-062-1/+5
| | | | * vmeUniverse/vmeUniverse.c: Use size_t for sizes.
* 2007-01-30 Till Straumann <strauman@slac.stanford.edu>Till Straumann2007-01-3113-117/+2272
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * vmeUniverse/README.porting, vmeUniverse/README.universe: updated, added more information for BSP implementors. * vmeUniverse/VMEDMA.h (added): VME DMA API definition. * vmeUniverse/bspVmeDmaList.h (added), vmeUniverse/bspVmeDmaListP.h (added), * vmeUniverse/bspVmeDmaList.c (added): Driver-independent code for linked-list DMA (public + private headers, implementation). * vmeUniverse/vmeUniverseDMA.h (added), vmeUniverse/vmeTsi148DMA.h (added): interface to new DMA features of drivers. * vmeUniverse/vme_amd_defs.h: Added definition for data-width hint bits (VME_MODE_DBWxx). * vmeUniverse/vmeTsi148.c: added DMA support. Added support for data-width hint/modifier bits. * vmeUniverse/vmeUniverse.c, vmeUniverse/vmeUniverse.h: Added support for data-width hint/modifier bits. Added support for xxx_BLT, xxx_MBLT address modifiers. Restrict DBW to 32 in non-MBLT modes (except single-beat; a comment is in README.universe). Updated DMA support to implement new VMEDMA.h API. Added support for non-incrementing VME addresses. Restrict data width to 32 for single-beat AMs when the universe would use MBLT for DMA.
* Formatting.Joel Sherrill2007-01-221-2/+2
|
* * vmeUniverse/VME.h:Till Straumann2007-01-192-0/+120
| | | | | | moved VME.h from libbsp/powerpc/shared/vme to libbsp/shared/vmeUniverse; eventually, this (and other) VME API headers should migrate to cpukit.
* 2007-01-16 Till Straumann <strauman@slac.stanford.edu>Till Straumann2007-01-176-16/+245
| | | | | | | * vmeUniverse/vmeTsi148.c, vmeUniverse/vmeTsi148.h, * vmeUniverse/vmeUniverse.c, vmeUniverse/vmeUniverse.h, * vmeUniverse/vme_am_defs.h: Added SLAC/Stanford Authorship Note / Copyright + Liability Disclaimer.
* Fixed line length -- must be < 80.Joel Sherrill2006-12-141-19/+18
|
* * vmeUniverse/vme_am_defs.h: Added address modifiers for 2eVME. AddedTill Straumann2006-12-136-232/+922
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | flags for 2eSST and DBW16. * vmeUniverse/vmeUniverse.h: Removed AM definitions and include vme_am_defs.h instead. Declare new routine vmeUniverseMapCRG(). Export 'irq manager' API only if __INSIDE_RTEMS_BSP__ defined. Renamed 'shared' argument to vmeUniverseInstallIrqMgrAlt() to 'flags' since now more options are available. Added new flag to install 'posted-write' workaround. * vmeUniverse/vmeUniverse.c: Allow BSP to override BSP_PCI2LOCAL_ADDR() macro. Data width of outbound port can now be restricted to 16-bit (if new DBW16 flag set in address modifier). Added vmeUniverseMapCRG() for mapping local registers onto VME. Interrupt manager now implements a workaround (enabled at installation time) which flushes the write-fifo after user ISR returns. This requires the universe's registers to be accessible from VME (either CSR space or CRG mapped to A16/A24/A32), though. * vmeUniverse/vmeTsi148.h: vmeTsi148ClearVMEBusErrors() now returns the fault address as a 32-bit address (not ulonglong anymore). The driver only supports 32-bit addresses. Declare new routine vmeTsi148MapCRG(). Export 'irq manager' API only if __INSIDE_RTEMS_BSP__ defined. Renamed 'shared' argument to vmeTsi148InstallIrqMgrAlt() to 'flags' to allow more options to be supported. Added comments explaining the 'posted-write' workaround implemented by the interrupt manager. * vmeUniverse/vmeTsi148.c: Clear 'SYSFAIL' during initialization. Allow BSP to override BSP_PCI2LOCAL_ADDR() macro. Added support for 2eSST when configuring windows (untested - I have no 2eSST). Added vmeTsi148MapCRG() for mapping local registers onto VME. Implemented 'posted-write' workaround for interrupt manager (consult source for details).
* 2006-12-13 Joel Sherrill <joel@OARcorp.com>Joel Sherrill2006-12-132-2/+6
| | | | | PR 1190/bsps * bootcard.c: Remove status since unused.
* Fix formatting.Joel Sherrill2006-11-301-2/+2
|
* * vmeUniverse/vmeTsi148.h: user now must define a symbolTill Straumann2006-11-302-0/+18
| | | | | for the header to declare 'dump info'-style routine. This is in order to avoid pulling in <stdio.h>.
* 2006-11-17 Joel Sherrill <joel@OARcorp.com>Joel Sherrill2006-11-173-3/+31
| | | | | | | | | | * clock_driver_stub.c, clockdrv_shell.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-11-15 Joel Sherrill <joel@OARcorp.com>Joel Sherrill2006-11-153-43/+38
| | | | | | * bootcard.c: Merge c_rtems_main() into boot_card(). This eliminated a file and simplified initialization. * main.c: Removed.
* Fix comment.Joel Sherrill2006-10-191-1/+1
|
* 2006-10-19 Joel Sherrill <joel@OARcorp.com>Joel Sherrill2006-10-191-4/+4
| | | | * gdbstub/rtems-stub-glue.c: Change registers pointer to unsigned.
* 2006-10-19 Joel Sherrill <joel@OARcorp.com>Joel Sherrill2006-10-191-0/+4
| | | | * gdbstub/rtems-stub-glue.c:
* * vmeUniverse/vmeTsi148.c: Silenced compiler warningsTill Straumann2006-07-122-2/+7
| | | | (gcc-4.1.1 warns that uint32_t and unsigned int are different).
* Added address-modifier codes for BLT/MBLT.Till Straumann2006-06-192-8/+37
|
* 2006-02-01 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2006-02-011-0/+5
| | | | | * gnatinstallhandler.c: Rename since old name is now used by GNAT source.
* Formatting.Joel Sherrill2006-02-011-10/+11
|
* 2006-02-01 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2006-02-011-1/+3
| | | | | * gnatinstallhandler.c: Rename since old name is now used by GNAT source.
* 2006-01-26 Till Straumann <strauman@slac.stanford.edu>Till Straumann2006-01-275-3/+29
| | | | | | * vmeUniverse/vmeTsi148.c, vmeUniverse/vmeUniverse.c, vmeUniverse/vmeUniverse.h, vmeUniverse/vme_amd_defs.h: Added 2F address modifier for VME64 CSR access.
* * vmeUniverse/vmeTsi148.c, vmeUniverse/vmeTsi148.h,Till Straumann2006-01-125-20/+81
| | | | | | | | | vmeUniverse/vmeUniverse.c, vmeUniverse/vmeUniverse.h, vmeUniverse/vme_amd_defs.h: No longer enable posted-writes on master windows (creates race-condition on memory-mapped devices). A new flag allows for signalling that a window maps 'ordinary memory'. Disable VME IRQ level if no handler is registered with interrupting vector.
* * vmeUniverse/vmeTsi148.c, vmeUniverse/vmeTsi148.h:Till Straumann2006-01-123-8/+17
| | | | Eliminate obsolete types.