arch: arm: add additional sanity checks before MPU config change
arch: arm: add additional sanity checks before MPU config change

This commit inserts sanity checks every time we are performing
a (re)-configuration of one or multiple MPU regions, ensuring
that we do not attempt to configure an invalid region number.

Particulary for arm_mpu_config(), called during pre-kernel
initialization phase, we add a system ASSERT if we attempt
to initialize more regions that what is supported by hardware.
We do this to ensure the misconfiguration is detected early and
the system boot is aborted.

Signed-off-by: Ioannis Glaropoulos <5921cc8bab7e1d4329f52fd8f6268f9692e3de80@nordicsemi.no>

zephyrproject-rtos/zephyr,galak/zephyr,galak/zephyr,nashif/zephyr,GiulianoFranchetto/zephyr,ldts/zephyr,finikorg/zephyr,finikorg/zephyr,nashif/zephyr,zephyriot/zephyr,kraj/zephyr,ldts/zephyr,GiulianoFranchetto/zephyr,kraj/zephyr,galak/zephyr,punitvara/zephyr,explora26/zephyr,finikorg/zephyr,Vudentz/zephyr,punitvara/zephyr,explora26/zephyr,ldts/zephyr,Vudentz/zephyr,Vudentz/zephyr,explora26/zephyr,nashif/zephyr,zephyriot/zephyr,Vudentz/zephyr,zephyriot/zephyr,kraj/zephyr,nashif/zephyr,mbolivar/zephyr,ldts/zephyr,zephyrproject-rtos/zephyr,explora26/zephyr,GiulianoFranchetto/zephyr,zephyriot/zephyr,punitvara/zephyr,finikorg/zephyr,nashif/zephyr,punitvara/zephyr,GiulianoFranchetto/zephyr,kraj/zephyr,punitvara/zephyr,GiulianoFranchetto/zephyr,zephyrproject-rtos/zephyr,zephyrproject-rtos/zephyr,Vudentz/zephyr,mbolivar/zephyr,Vudentz/zephyr,finikorg/zephyr,zephyrproject-rtos/zephyr,galak/zephyr,ldts/zephyr,galak/zephyr,mbolivar/zephyr,explora26/zephyr,kraj/zephyr,zephyriot/zephyr,mbolivar/zephyr,mbolivar/zephyr