zephyr/arch
Maksim Masalski 466c5d9dea arch: x86: core: remove order eval of 'z_x86_check_stack_bounds' args
The code depends on the order of evaluation 'z_x86_check_stack_bounds'
function arguments.
The solution is to assign these values to variables and then pass
them in.
The fix would be to make 2 local variables, assign them the values
of _df_esf.esp and .cs, and then call the function with those 2 local
variables as arguments.
Found as a coding guideline violation (MISRA R13.2) by static
coding scanning tool.

Change "int reason" to "unsigned reason" like in other functions.

Signed-off-by: Maksim Masalski <maksim.masalski@intel.com>
2021-06-23 07:10:18 -04:00
..
arc cmake: Support coverage flags on all archs 2021-06-10 18:01:36 -04:00
arm cmake: Support coverage flags on all archs 2021-06-10 18:01:36 -04:00
arm64 cmake: Support coverage flags on all archs 2021-06-10 18:01:36 -04:00
common cmake: Support coverage flags on all archs 2021-06-10 18:01:36 -04:00
nios2 arch: nios2: Fix 10.4 violations 2021-04-10 09:59:37 -04:00
posix cmake: Support coverage flags on all archs 2021-06-10 18:01:36 -04:00
riscv RISC-V: Round up pre-populated stack frame to arch stack alignment 2021-06-11 16:13:01 +02:00
sparc SPARC: add the Flush windows software trap 2021-05-28 06:32:36 -05:00
x86 arch: x86: core: remove order eval of 'z_x86_check_stack_bounds' args 2021-06-23 07:10:18 -04:00
xtensa xtensa: fix booting secondary cores on the dummy thread 2021-05-03 17:13:01 -04:00
CMakeLists.txt cmake: fix include directories to work with out-of-tree arch 2020-08-05 08:06:07 -04:00
Kconfig kernel: mmu: z_backing_store* to k_mem_paging_backing_store* 2021-05-28 11:33:22 -04:00