zephyr/arch
Ioannis Glaropoulos 4aa3f71337 arch: arm: major cleanup and refactoring for fault function
This commit refactors and cleans up __fault, so the function
- reduces to supplying MSP, PSP, and EXC_RETURN to the C
  function for fault handling
- simplifies itself, removing conditional
  implementation, i.e. based on ARM Secure firmware,

The reason for that is simple: it is much better to write the
fault handling in C instead of assembly, so we really do only
what is strictly required, in assembly.

Therefore, the commit refactors the z_arm_fault() function
as well, organizing better the different functional blocks,
that is:
- unlocking interrupts
- retriving ESF
- asserting for HW errors
- printing additional error logs

The refactoring unifies the way the ESF is retrieved for the
different Cortex-M variants and security execution states.

Signed-off-by: Ioannis Glaropoulos <Ioannis.Glaropoulos@nordicsemi.no>
2019-10-24 10:12:08 -07:00
..
arc arch: arc: Implement z_arch_system_halt() 2019-10-24 13:26:41 +02:00
arm arch: arm: major cleanup and refactoring for fault function 2019-10-24 10:12:08 -07:00
common
nios2
posix
riscv
x86 x86: arm: rename some functions 2019-10-21 10:13:38 -07:00
x86_64
xtensa xtensa: kconfig: Remove unused XTENSA_OMIT_HIGH_INTERRUPTS symbol 2019-10-22 14:31:46 -05:00
CMakeLists.txt
Kconfig kconfig: Introduce typed dt kconfig functions 2019-10-24 08:51:06 -05:00