zephyr/arch/arm/core
Maureen Helm d2e38decf0 arm: nxp: mpu: Return constant number of mpu regions
The original implementation of _get_num_regions() parsed the CESR[NRGD]
register field to determine the number of mpu region descriptors
implemented in hardware. There was a possible path in the code to return
zero, which would cause underflow later on in arm_core_mpu_configure().
Coverity complained despite an assert to catch this condition. Instead,
use a preprocessor macro from mcux that defines the number of mpu region
descriptors.

Coverity-CID: 169811
Jira: ZEP-2208

Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
2017-06-12 11:40:12 -05:00
..
cortex_m arm: nxp: mpu: Return constant number of mpu regions 2017-06-12 11:40:12 -05:00
offsets arm: core: Update core to use struct k_thread 2017-03-30 18:31:05 +00:00
__aeabi_atexit.c license: Replace Apache boilerplate with SPDX tag 2017-01-19 03:50:58 +00:00
cpu_idle.S arch: convert to using newly introduced integer sized types 2017-04-21 12:08:12 +00:00
exc_exit.S kernel: fix short time-slice reset 2017-06-02 14:47:01 -04:00
fatal.c debug: add stack sentinel feature 2017-05-13 15:14:41 -04:00
fault.c arm: fix exception handling 2017-04-22 01:08:07 +00:00
fault_s.S arm: cmsis: Convert _ScbIsNestedExc to use direct CMSIS register access 2017-02-10 14:47:41 -06:00
irq_init.c arm: cmsis: Remove nvic.h and use CMSIS NVIC calls directly 2017-01-30 11:02:36 -06:00
irq_manage.c Convert remaining code to using newly introduced integer sized types 2017-04-21 11:38:23 -05:00
irq_offload.c arm: implement __svc on Cortex M0 2017-06-02 02:17:32 -04:00
isr_wrapper.S test: benchmarking: Timing metrics for the kernel 2017-05-03 08:46:30 -04:00
Kconfig arm: dts: Cleanup HAS_DTS 2017-05-15 13:22:54 -04:00
Makefile arm: core: mpu: Add ARM MPU support 2017-04-25 21:53:17 +00:00
swap.S stack_sentinel: change cooperative check 2017-06-08 13:49:36 -05:00
sys_fatal_error_handler.c stack_sentinel: hang system on failure 2017-06-08 13:49:36 -05:00
thread.c kernel: add k_thread_create() API 2017-05-11 20:24:22 -04:00
thread_abort.c arm: core: Update core to use struct k_thread 2017-03-30 18:31:05 +00:00