summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/powerpc/virtex5/include/bsp.h (unfollow)
Commit message (Collapse)AuthorFilesLines
2018-01-25Remove make preinstallChris Johns1-107/+0
A speciality of the RTEMS build system was the make preinstall step. It copied header files from arbitrary locations into the build tree. The header files were included via the -Bsome/build/tree/path GCC command line option. This has at least seven problems: * The make preinstall step itself needs time and disk space. * Errors in header files show up in the build tree copy. This makes it hard for editors to open the right file to fix the error. * There is no clear relationship between source and build tree header files. This makes an audit of the build process difficult. * The visibility of all header files in the build tree makes it difficult to enforce API barriers. For example it is discouraged to use BSP-specifics in the cpukit. * An introduction of a new build system is difficult. * Include paths specified by the -B option are system headers. This may suppress warnings. * The parallel build had sporadic failures on some hosts. This patch removes the make preinstall step. All installed header files are moved to dedicated include directories in the source tree. Let @RTEMS_CPU@ be the target architecture, e.g. arm, powerpc, sparc, etc. Let @RTEMS_BSP_FAMILIY@ be a BSP family base directory, e.g. erc32, imx, qoriq, etc. The new cpukit include directories are: * cpukit/include * cpukit/score/cpu/@RTEMS_CPU@/include * cpukit/libnetworking The new BSP include directories are: * bsps/include * bsps/@RTEMS_CPU@/include * bsps/@RTEMS_CPU@/@RTEMS_BSP_FAMILIY@/include There are build tree include directories for generated files. The include directory order favours the most general header file, e.g. it is not possible to override general header files via the include path order. The "bootstrap -p" option was removed. The new "bootstrap -H" option should be used to regenerate the "headers.am" files. Update #3254.
2017-11-22powerpc: Remove _BSP_Fatal_error()Sebastian Huber1-1/+0
BSPs can use the bsp_fatal_extension() to provide BSP-specific fatal error handling. There is no need for a _BSP_Fatal_error(). Close #3246.
2017-11-22powerpc: Replace BSP_panic() with rtems_panic()Sebastian Huber1-1/+0
Due to a new rtems_panic() implementation, it is possible to replace the PowerPC-specific BSP_panic() with rtems_panic(). Remove BSP_panic() implementations. Close #3245.
2016-11-03virtex4, virtex5 bsp.h: Use BSP_INTERRUPT_STACK_SIZE not user space ↵Tim Cussins1-1/+1
CONFIGURE_INTERRUPT_STACK_SIZE closes #2801.
2016-03-30powerpc/virtex5/include/bsp.h: Do not include <rtems/iosupp.h>Joel Sherrill1-1/+0
2016-03-29powerpc/virtex5: Remove include of <rtems/console.h> from <bsp.h> and fix ↵Joel Sherrill1-1/+0
warnings
2016-03-27powerpc/virtex5/include/bsp.h: Do not include <rtems/clockdrv.h>Joel Sherrill1-1/+0
2015-07-16Most bsp.h: Switch to LIBBSP_@CPU@_@BSP_FAMILY@_H for guardJoel Sherrill1-2/+2
This was done by the following script run from libbsp: find * -name bsp.h | xargs -e grep -l "#ifndef.*_BSP_H" | while read b do echo $b cpu=`echo $b | cut -d'/' -f1 | tr '[:lower:]' '[:upper:]' ` bsp=`echo $b | cut -d'/' -f2 | tr '[:lower:]' '[:upper:]' ` g="LIBBSP_${cpu}_${bsp}_BSP_H" # echo $g sed -e "s/ifndef _BSP_H/ifndef ${g}/" \ -e "s/define _BSP_H/define ${g}/" \ -i $b done
2014-10-23bsps: Move extern "C" to not cover includesSebastian Huber1-4/+4
Some includes may use C++ and this conflicts if surrounded extern "C".
2014-10-16powerpc/virtex5/include/bsp.h: Fix warningsJoel Sherrill1-0/+5
2014-10-13powerpc/virtex5/include/bsp.h: Add prototypes to fix warningsJoel Sherrill1-0/+5
2014-08-27virtex5/.../bsp.h: Add BSP_Convert_decrementer() macro required by MPC6xx ↵Joel Sherrill1-3/+24
timer driver
2014-03-21Change all references of rtems.com to rtems.org.Chris Johns1-1/+1
2012-11-15score: Add RTEMS_FATAL_SOURCE_EXITSebastian Huber1-0/+1
Include <bsp/default-initial-extension.h> in all BSPs. Call rtems_fatal() with RTEMS_FATAL_SOURCE_EXIT as source and the exit() status code as fatal code in every bsp_cleanup(). Move previous bsp_cleanup() code into bsp_fatal_extension().
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-03-30Add Virtex4 and Virtex5 BSPsRic Claus1-23/+12
This commit covers at least PR2020, 2022, and 2023. This patch adds all of the code for both BSPs, modifications to libcpu/powerpc for the ppc440, and some updates to the BSPs from follow up review and testing. These BSPs should be good baselines for future development. The configurations used by Ric are custom and have a non-standard NIC. They also do not have a UART. Thus the current console driver just prints to a RAM buffer. The NIC and UART support are left for future work. When the UART support is added, moving the existing "to RAM" console driver to a shared location is likely desirable because boards with no debug UART port are commonly deployed. This would let printk() go to RAM.
2010-03-27code changes to remove warningsThomas Doerfler1-0/+1
2008-09-182008-09-18 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill1-12/+0
* include/bsp.h: Remove unnecessary boilerplate comments.
2008-09-152008-09-15 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill1-7/+0
* Makefile.am, configure.ac, include/bsp.h, include/bspopts.h.in, startup/bspstart.c, startup/linkcmds: Add use of bsp_get_work_area() in its own file and rely on BSP Framework to perform more initialization. * startup/bspgetworkarea.c: New file.
2008-07-232008-07-22 Till Straumann <strauman@slac.stanford.edu>Till Straumann1-1/+2
* irq/irq_init.c, include/bsp.h: define BSP_PPC403_CLOCK_HOOK_EXCEPTION so that we hook the timer exception rather than going through the interrupt dispatcher.
2007-12-112007-12-11 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill1-3/+0
* README, 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-10/+0
* include/bsp.h, startup/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-09-112007-09-11 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill1-1/+0
* Makefile.am, include/bsp.h: Do not include networking drivers if networking is disabled.
2007-07-05fixed some problems with shared PPC exception handling codeThomas Doerfler1-1/+2
2007-07-04added virtex BSP support and some missing files for common PPCThomas Doerfler1-2/+18
exception handling
2006-03-17Remove eof include fileRalf Corsepius1-1/+0
2005-05-262005-05-26 Ralf Corsepius <ralf.corsepius@rtems.org>Ralf Corsepius1-2/+2
* include/bsp.h: New header guard.
2004-04-232004-04-22 Ralf Corsepius <ralf_corsepius@rtems.org>Ralf Corsepius1-14/+0
* include/bsp.h: Split out tmtest27 support. * include/tm27.h: New.
2004-04-212004-04-21 Ralf Corsepius <ralf_corsepius@rtems.org>Ralf Corsepius1-10/+0
PR 613/bsps * include/bsp.h: Remove MAX_LONG_TEST_DURATION.
2004-04-212004-04-21 Ralf Corsepius <ralf_corsepius@rtems.org>Ralf Corsepius1-1/+0
PR 614/bsps * include/bsp.h: Remove MAX_SHORT_TEST_DURATION (Unused).
2004-04-21Remove duplicate white lines.Ralf Corsepius1-2/+0
2004-04-21Remove stray white spaces.Ralf Corsepius1-5/+5
2004-04-012004-04-01 Ralf Corsepius <ralf_corsepius@rtems.org>Ralf Corsepius1-4/+4
* include/bsp.h: Include <rtems/clockdrv.h> instead of <clockdrv.h>. * include/bsp.h: Include <rtems/console.h> instead of <console.h>. * include/bsp.h: Include <rtems/iosupp.h> instead of <iosupp.h>.
2003-09-042003-09-04 Joel Sherrill <joel@OARcorp.com>Joel Sherrill1-1/+1
* include/bsp.h, include/coverhd.h, startup/bspclean.c, startup/setvec.c: URL for license changed.
2001-11-082001-11-08 Dennis Ehlin (ECS) <Dennis.Ehlin@ecs.ericsson.se>Joel Sherrill1-4/+7
This modification is part of the submitted modifications necessary to support the IBM PPC405 family. This submission was reviewed by Thomas Doerfler <Thomas.Doerfler@imd-systems.de> who ensured it did not negatively impact the ppc403 BSPs. The submission and tracking process was captured as PR50. * ChangeLog, Makefile.am, README, bsp_specs, bsp_specs.dl, configure.ac, times, dlentry/.cvsignore, dlentry/Makefile.am, dlentry/dlentry.S, include/.cvsignore, include/Makefile.am, include/bsp.h, include/bspopts.h.in, include/coverhd.h, startup/.cvsignore, startup/Makefile.am, startup/bspclean.c, startup/bspstart.c, startup/linkcmds, startup/linkcmds.dl, startup/setvec.c, wrapup/.cvsignore, wrapup/Makefile.am: New files that are part of the new gen405 BSP.
2001-06-182001-05-26 Ralf Corsepius <corsepiu@faw.uni-ulm.de>Joel Sherrill1-0/+2
* configure.in: Add bspopts.h. * include/.cvsignore: Add bspopts.h*, stamp-h*. * include/Makefile.am: Use *_HEADERS instead of *H_FILES. * include/bsp.h: Include bspopts.h.
2000-06-12Merged from 4.5.0-beta3aJoel Sherrill1-0/+9
1999-11-17Updated copyright notice.Joel Sherrill1-2/+1
1998-09-30BSP submitted by Thomas Doerfler <td@imd.m.isar.de>:Joel Sherrill1-14/+12
Finally I am through: I have found the last bugs that made RTEMS- 4.0-beta3 start on my ppc403 board from ROM. So now the '403 support is up to date again. Roughly I have added the following features: - support for the on-chip interrupt controller (in a separate module) - interrupt support for the console device - termios support for the console device ============================================== Since the BSP behaivour changed in some details (console no longer is polling, other memory layout etc) I have created a new BSP "helas403" rather than changing the "papyrus" BSP. The old "polled" console driver still sticks around in "console.c.polled" To get the BSP up and running, I had to create the new BSP files (derived from papyrus). Besides that, the following source areas have been changed: - c/src/lib/libcpu/powerpc/ppc403: changes to console driver, small changes to clock driver, new "ictrl" interrupt controller driver - c/src/exec/score/cpu/powerpc/ppc.h: some small changes (added ppc403 characteristics like a exception vector prefix register, some special register definitions). I am quite sure, they are compatible with the existing sources, although I did not check - c/src/exec/score/cpu/powerpc/cpu.c: There is one severe limitation in the exception entries: Due to the current code arrangement, the "branch absolute" to the ISR handler may only jump to the first 128MByte or the last 128MByte of the 4GByte address range. When the ppc403 is running out of ROM, the ROM functions are located in the last 128MByte (0xFFF00000 and up). These addresses were not handled correctly (sign reduced) in "install_raw_handler". The change I added should work on existing ppc BSPs aswell... - c/src/lib/libc/termios.c: During my tests, I added one change you sent me, so this patch will already be incorporated in the current source tree. There are some smaller changes, see the attached diff file. ========================================= Concerning the GNU toolchain: I tried several tool chains. Finally I almost succeeded with egcs-1.0.3a with patch egcs-1.0.3-rtems-diff-19980527 I had to add the following lines to the egcs files. Without them configure complaint that the cross compiler could not generate executable output. - additional lines needed in egcs distribution in file gcc/config/rs6000/rtems.h: +++ lines start #undef STARTFILE_DEFAULT_SPEC #define STARTFILE_DEFAULT_SPEC "ecrti.o%s" #undef ENDFILE_DEFAULT_SPEC #define ENDFILE_DEFAULT_SPEC "ecrtn.o%s" ++++ lines end As far as I have seen in the Changelog of egcs, you have recently sent two patches affecting the powerpc support, but they were added in the wrong order.... :-( egcs-19980628 with patch egcs-19980628-rtems-diff-19980707 does not work! I used binutils 2.9.1 with patch binutils-2.9.1-rtems-diff-19980515 (binutils 2.8.1 does not work, internal error in gas) and newlib-1.8.0 with patch newlib-1.8.0-rtems-diff-19980707 Finally I had to poke a line in the "bit" script, since, on my LINUX machine, the GNU make is only available as "make", not as "gmake"... For all the tools and newlib I selected configuration "powerpc- rtems". -------------------------------------------- IMD Ingenieurbuero fuer Microcomputertechnik Thomas Doerfler Herbststrasse 8 D-82178 Puchheim Germany email: td@imd.m.isar.de
1998-04-15Numerous changes which in total greatly reduced the amount of sourceJoel Sherrill1-6/+0
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.
1998-04-14Removed delay macroJoel Sherrill1-16/+0
1998-03-21Switch to using a shared main() for all of the embedded BSPsJoel Sherrill1-8/+0
based on the GNU tools. This usually involved correcting the type of bsp_start(), bsp_cleanup(), adjusting the start code to call the right start routine (the shared boot_card()), and then removing code from bsp_start() which was performed in the new boot_card()/main() path.
1998-02-17updated copyright to 1998Joel Sherrill1-1/+1
1997-10-08Fixed typo in the pointer to the license terms.Joel Sherrill1-2/+2
1997-04-22headers updated to reflect new style copyright notice as partJoel Sherrill1-5/+5
of switching to the modified GNU GPL.
1995-12-20changes remerged after lost in disk crash -- recovered from snapshot, ↵Joel Sherrill1-7/+28
partially recovered working tree, etc
1995-10-06fixed missing CVS IDsJoel Sherrill1-1/+1
1995-09-11The word "RTEMS" almost completely removed from the core.Joel Sherrill1-0/+19
Configuration Table Template file added and all tests modified to use this. All gvar.h and conftbl.h files removed from test directories. Configuration parameter maximum_devices added. Core semaphore and mutex handlers added and RTEMS API Semaphore Manager updated to reflect this. Initialization sequence changed to invoke API specific initialization routines. Initialization tasks table now owned by RTEMS Tasks Manager. Added user extension for post-switch. Utilized user extensions to implement API specific functionality like signal dispatching. Added extensions to the System Initialization Thread so that an API can register a function to be invoked while the system is being initialized. These are largely equivalent to the pre-driver and post-driver hooks. Added the Modules file oar-go32_p5, modified oar-go32, and modified the file make/custom/go32.cfg to look at an environment varable which determines what CPU model is being used. All BSPs updated to reflect named devices and clock driver's IOCTL used by the Shared Memory Driver. Also merged clock isr into main file and removed ckisr.c where possible. Updated spsize to reflect new and moved variables. Makefiles for the executive source and include files updated to show break down of files into Core, RTEMS API, and Neither. Header and inline files installed into subdirectory based on whether logically in the Core or a part of the RTEMS API.
1995-08-23Support for variable length names added to Object Handler. This supportsJoel Sherrill1-0/+114
both fixed length "raw" names and strings from the API's point of view. Both inline and macro implementations were tested.