summaryrefslogtreecommitdiffstats
path: root/cpukit/score/cpu/arm/include/rtems/score/armv7m.h (unfollow)
Commit message (Collapse)AuthorFilesLines
2023-07-14score/arm: improve printed exception information for Cortex-Mx CPUsKarel Gardas1-0/+11
Sponsored-By: Precidata
2023-05-26arm: Improve Doxygen file commentsSebastian Huber1-1/+4
2023-03-16score/arm: enhance ARMV7M MPU setup with capability to set control registerKarel Gardas1-1/+2
Due to API change, the patch also fixes affected BSPs and uses value provided by MPU CTRL spec option there. Sponsored-By: Precidata
2022-03-10cpukit/: Scripted embedded brains header file clean upJoel Sherrill1-6/+0
Updates #4625.
2022-02-28score/cpu/arm: Change license to BSD-2Joel Sherrill1-3/+22
Updates #3053.
2021-06-21cpu/armv7m: Fix initialization of MPU regionsChristian Mauderer1-1/+1
The write to RBAR didn't have the valid flag set. Therefore the write to RASR had an influence on the previously set region. That means for example that if Region 0 had been enabled but 1 should be disabled due to a size of 0, the previous code would have disabled region 0 instead. This patch fixes that behaviour. Close #4450
2021-06-21cpu/armv7m: Avoid regions with negative sizeChristian Mauderer1-1/+1
Don't initialze regions that have a negative size (for example due to a wrong calculation). Update #4450
2020-12-14cpu/armv7m: Fix table based init for ARMV7M_MPUChristian Mauderer1-1/+7
Somehow the table index has been missing in the latest patch version. With that, the configuration for the first region has been applied multiple times. Update #4180
2020-11-20cpu/armv7m: Add table based init for ARMV7M_MPUChristian Mauderer1-0/+103
Modify the MPU functions of the stm32h7 BSP to be table based and available for all ARMV7M BSPs. Update #4180
2020-04-03arm: ARMv7-M statically initialized vector tableSebastian Huber1-0/+2
Statically initialize the ARMv7-M vector table to allow a placement in ROM with read-only MPU settings. Change licence to BSD-2-Clause in some files.
2018-01-25Remove make preinstallChris Johns1-0/+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-01-30bsps/arm: Fix Cortex-M DWT CPU counter.Christian Mauderer1-1/+45
It is necessary to enable the DWT using a special initialization sequence before the CYCCNT can be enabled. See for example the RESET_CYCLE_COUNTER in libbsp/arm/atsam/utils/utility.h. Note that this problem only occurs if no debugger is connected. A debugger most likely already enables the necessary module.
2016-02-19_ARMV7M_Is_vector_an_irq: Use ARMV7M_VECTOR_SYSTICK instead of hardcoded 16Martin Galvan1-1/+2
Also add a comment explaining why we use that value.
2016-01-21arm: Use DWT CYCCNT for timecounter if availableSebastian Huber1-0/+27
2014-08-12arm: Add support for FPv4-SP floating point unitSebastian Huber1-1/+36
This floating point unit is available in Cortex-M4 processors and defined by ARMv7-M. This adds basic support for other VFP-D16 variants.
2014-03-21Change all references of rtems.com to rtems.org.Chris Johns1-1/+1
2014-01-10arm: Add ARMv7-M SHCSR register bitsSebastian Huber1-0/+6
2013-01-08score: Doxygen Clean Up Task #15Alex Ivanov1-2/+7
2013-01-07arm: Add AIRCR register definesSebastian Huber1-0/+15
2013-01-07arm: Add and use _ARMV7M_Exception_default()Sebastian Huber1-0/+2
2013-01-07arm: Include <rtems/score/cpu.h>Sebastian Huber1-2/+5
2012-12-02score misc: Clean up Doxygen #13 (GCI 2012)Mathew Kallada1-0/+4
This patch is a task from GCI 2012 which improves the Doxygen comments in the RTEMS source. http://www.google-melange.com/gci/task/view/google/gci2012/8013205
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-07arm: New functionSebastian Huber1-0/+6
Add and use function _ARMV7M_Set_exception_priority_and_handler(). Use ARMV7M_EXCEPTION_PRIORITY_LOWEST define.
2012-03-24ARM: New define ARMV7M_EXCEPTION_PRIORITY_LOWESTSebastian Huber1-0/+2
2012-02-11ARMv7-M NVIC and MPU API changes.Sebastian Huber1-6/+242
2012-02-11ARMv7-M Systick API changeSebastian Huber1-1/+1
2011-09-242011-09-24 Sebastian Huber <sebastian.huber@embedded-brains.de>Sebastian Huber1-0/+236
* rtems/score/armv7m.h, armv7m-context-initialize.c, armv7m-context-restore.c, armv7m-context-switch.c, armv7m-exception-handler-get.c, armv7m-exception-handler-set.c, armv7m-exception-priority-get.c, armv7m-exception-priority-set.c, armv7m-initialize.c, armv7m-isr-dispatch.c, armv7m-isr-enter-leave.c, armv7m-isr-level-get.c, armv7m-isr-level-set.c, armv7m-isr-vector-install.c, armv7m-multitasking-start-stop.c: New files. * Makefile.am, preinstall.am: Reflect changes above. * rtems/score/arm.h: Define ARM_MULTILIB_ARCH_V4 and ARM_MULTILIB_ARCH_V7M. * rtems/score/cpu.h, cpu_asm.S, cpu.c, arm_exc_abort.S, arm_exc_handler_high.c, arm_exc_handler_low.S, arm_exc_interrupt.S: Define CPU_HAS_HARDWARE_INTERRUPT_STACK to FALSE. Use ARM_MULTILIB_ARCH_V4 and ARM_MULTILIB_ARCH_V7M.