Home
last modified time | relevance | path

Searched refs:reason (Results 1 – 25 of 526) sorted by relevance

12345678910>>...22

/Zephyr-latest/drivers/hwinfo/
Dhwinfo_nrf.c71 uint32_t reason = nrfx_reset_reason_get(); in z_impl_hwinfo_get_reset_cause() local
73 if (reason & NRFX_RESET_REASON_RESETPIN_MASK) { in z_impl_hwinfo_get_reset_cause()
76 if (reason & NRFX_RESET_REASON_DOG_MASK) { in z_impl_hwinfo_get_reset_cause()
79 if (reason & NRFX_RESET_REASON_LOCKUP_MASK) { in z_impl_hwinfo_get_reset_cause()
82 if (reason & NRFX_RESET_REASON_OFF_MASK) { in z_impl_hwinfo_get_reset_cause()
85 if (reason & NRFX_RESET_REASON_DIF_MASK) { in z_impl_hwinfo_get_reset_cause()
88 if (reason & NRFX_RESET_REASON_SREQ_MASK) { in z_impl_hwinfo_get_reset_cause()
93 if (reason & NRFX_RESET_REASON_CTRLAP_MASK) { in z_impl_hwinfo_get_reset_cause()
98 if (reason & NRFX_RESET_REASON_LPCOMP_MASK) { in z_impl_hwinfo_get_reset_cause()
103 if (reason & NRFX_RESET_REASON_NFC_MASK) { in z_impl_hwinfo_get_reset_cause()
[all …]
Dhwinfo_mcux_src.c22 uint32_t reason = SRC_GetResetStatusFlags((SRC_Type *)DT_INST_REG_ADDR(0)); in z_impl_hwinfo_get_reset_cause() local
26 if (reason & kSRC_IppResetPinFlag) { in z_impl_hwinfo_get_reset_cause()
31 if (reason & kSRC_PowerOnResetFlag) { in z_impl_hwinfo_get_reset_cause()
36 if (reason & kSRC_CoreLockupResetFlag) { in z_impl_hwinfo_get_reset_cause()
42 if (reason & kSRC_LockupSysResetFlag) { in z_impl_hwinfo_get_reset_cause()
47 if (reason & kSRC_CsuResetFlag) { in z_impl_hwinfo_get_reset_cause()
52 if (reason & kSRC_SNVSFailResetFlag) { in z_impl_hwinfo_get_reset_cause()
58 if (reason & kSRC_IppUserResetFlag) { in z_impl_hwinfo_get_reset_cause()
62 if (reason & kSRC_WatchdogResetFlag) { in z_impl_hwinfo_get_reset_cause()
65 if (reason & kSRC_JTAGGeneratedResetFlag) { in z_impl_hwinfo_get_reset_cause()
[all …]
Dhwinfo_mcux_src_rev2.c47 uint32_t reason = SRC_GetResetStatusFlags((SRC_Type *)DT_INST_REG_ADDR(0)); in z_impl_hwinfo_get_reset_cause() local
49 if (reason & (MCUX_RESET_PIN_FLAG)) { in z_impl_hwinfo_get_reset_cause()
52 if (reason & (MCUX_RESET_SOFTWARE_FLAG)) { in z_impl_hwinfo_get_reset_cause()
55 if (reason & (MCUX_RESET_POR_FLAG)) { in z_impl_hwinfo_get_reset_cause()
58 if (reason & (MCUX_RESET_WATCHDOG_FLAG)) { in z_impl_hwinfo_get_reset_cause()
61 if (reason & (MCUX_RESET_DEBUG_FLAG)) { in z_impl_hwinfo_get_reset_cause()
64 if (reason & (MCUX_RESET_SECURITY_FLAG)) { in z_impl_hwinfo_get_reset_cause()
67 if (reason & (MCUX_RESET_TEMPERATURE_FLAG)) { in z_impl_hwinfo_get_reset_cause()
70 if (reason & (MCUX_RESET_USER_FLAG)) { in z_impl_hwinfo_get_reset_cause()
81 uint32_t reason = SRC_GetResetStatusFlags((SRC_Type *)DT_INST_REG_ADDR(0)); in z_impl_hwinfo_clear_reset_cause() local
[all …]
Dhwinfo_smartbond.c14 uint32_t reason = CRG_TOP->RESET_STAT_REG; in z_impl_hwinfo_get_reset_cause() local
20 if (reason & CRG_TOP_RESET_STAT_REG_PORESET_STAT_Msk) { in z_impl_hwinfo_get_reset_cause()
23 if (reason & CRG_TOP_RESET_STAT_REG_HWRESET_STAT_Msk) { in z_impl_hwinfo_get_reset_cause()
26 if (reason & CRG_TOP_RESET_STAT_REG_SWRESET_STAT_Msk) { in z_impl_hwinfo_get_reset_cause()
29 if (reason & CRG_TOP_RESET_STAT_REG_WDOGRESET_STAT_Msk) { in z_impl_hwinfo_get_reset_cause()
32 if (reason & CRG_TOP_RESET_STAT_REG_CMAC_WDOGRESET_STAT_Msk) { in z_impl_hwinfo_get_reset_cause()
35 if (reason & CRG_TOP_RESET_STAT_REG_SWD_HWRESET_STAT_Msk) { in z_impl_hwinfo_get_reset_cause()
Dhwinfo_andes.c62 uint32_t reason, flags = 0; in z_impl_hwinfo_get_reset_cause() local
68 ret = syscon_read_reg(syscon_dev, SMU_WRSR, &reason); in z_impl_hwinfo_get_reset_cause()
73 if (reason & SMU_WRSR_APOR) { in z_impl_hwinfo_get_reset_cause()
76 if (reason & SMU_WRSR_MPOR) { in z_impl_hwinfo_get_reset_cause()
79 if (reason & SMU_WRSR_HW) { in z_impl_hwinfo_get_reset_cause()
82 if (reason & SMU_WRSR_WDT) { in z_impl_hwinfo_get_reset_cause()
85 if (reason & SMU_WRSR_SW) { in z_impl_hwinfo_get_reset_cause()
97 uint32_t reason; in z_impl_hwinfo_clear_reset_cause() local
109 ret = syscon_read_reg(syscon_dev, SMU_WRSR, &reason); in z_impl_hwinfo_clear_reset_cause()
110 } while ((reason & ANDES_RESET_STATUS_MASK) && (!ret)); in z_impl_hwinfo_clear_reset_cause()
/Zephyr-latest/kernel/
Dfatal.c21 FUNC_NORETURN __weak void arch_system_halt(unsigned int reason) in arch_system_halt() argument
23 ARG_UNUSED(reason); in arch_system_halt()
37 __weak void k_sys_fatal_error_handler(unsigned int reason, in k_sys_fatal_error_handler() argument
44 arch_system_halt(reason); in k_sys_fatal_error_handler()
60 static const char *reason_to_str(unsigned int reason) in reason_to_str() argument
62 switch (reason) { in reason_to_str()
79 FUNC_NORETURN void k_fatal_halt(unsigned int reason) in k_fatal_halt() argument
81 arch_system_halt(reason); in k_fatal_halt()
85 void z_fatal_error(unsigned int reason, const struct arch_esf *esf) in z_fatal_error() argument
98 LOG_ERR(">>> ZEPHYR FATAL ERROR %d: %s on CPU %d", reason, in z_fatal_error()
[all …]
/Zephyr-latest/arch/xtensa/core/
Dfatal.c87 void xtensa_fatal_error(unsigned int reason, const struct arch_esf *esf) in xtensa_fatal_error() argument
109 z_fatal_error(reason, esf); in xtensa_fatal_error()
126 FUNC_NORETURN void arch_system_halt(unsigned int reason) in arch_system_halt() argument
128 xtensa_simulator_exit(255 - reason); in arch_system_halt()
141 void z_impl_xtensa_user_fault(unsigned int reason) in z_impl_xtensa_user_fault() argument
144 if ((reason != K_ERR_KERNEL_OOPS) && in z_impl_xtensa_user_fault()
145 (reason != K_ERR_STACK_CHK_FAIL)) { in z_impl_xtensa_user_fault()
146 reason = K_ERR_KERNEL_OOPS; in z_impl_xtensa_user_fault()
149 xtensa_arch_except(reason); in z_impl_xtensa_user_fault()
152 static void z_vrfy_xtensa_user_fault(unsigned int reason) in z_vrfy_xtensa_user_fault() argument
[all …]
/Zephyr-latest/arch/arm/core/cortex_a_r/
Dfault.c59 uint32_t reason = K_ERR_CPU_EXCEPTION; in dump_fault() local
67 reason = K_ERR_ARM_ALIGNMENT_FAULT; in dump_fault()
71 reason = K_ERR_ARM_PERMISSION_FAULT; in dump_fault()
75 reason = K_ERR_ARM_SYNC_EXTERNAL_ABORT; in dump_fault()
79 reason = K_ERR_ARM_ASYNC_EXTERNAL_ABORT; in dump_fault()
83 reason = K_ERR_ARM_SYNC_PARITY_ERROR; in dump_fault()
87 reason = K_ERR_ARM_ASYNC_PARITY_ERROR; in dump_fault()
91 reason = K_ERR_ARM_DEBUG_EVENT; in dump_fault()
96 reason = K_ERR_ARM_TRANSLATION_FAULT; in dump_fault()
100 reason = K_ERR_ARM_UNSUPPORTED_EXCLUSIVE_ACCESS_FAULT; in dump_fault()
[all …]
/Zephyr-latest/arch/arm/core/cortex_m/
Dfault.c186 uint32_t reason = K_ERR_ARM_MEM_GENERIC; in mem_manage_fault() local
192 reason = K_ERR_ARM_MEM_STACKING; in mem_manage_fault()
197 reason = K_ERR_ARM_MEM_UNSTACKING; in mem_manage_fault()
201 reason = K_ERR_ARM_MEM_DATA_ACCESS; in mem_manage_fault()
223 reason = K_ERR_ARM_MEM_INSTRUCTION_ACCESS; in mem_manage_fault()
228 reason = K_ERR_ARM_MEM_FP_LAZY_STATE_PRESERVATION; in mem_manage_fault()
299 reason = K_ERR_STACK_CHK_FAIL; in mem_manage_fault()
330 return reason; in mem_manage_fault()
344 uint32_t reason = K_ERR_ARM_BUS_GENERIC; in bus_fault() local
349 reason = K_ERR_ARM_BUS_STACKING; in bus_fault()
[all …]
/Zephyr-latest/tests/arch/arm/arm_hardfault_validation/src/
Darm_hardfault.c16 void k_sys_fatal_error_handler(unsigned int reason, const struct arch_esf *pEsf) in k_sys_fatal_error_handler() argument
20 TC_PRINT("Caught system error -- reason %d\n", reason); in k_sys_fatal_error_handler()
24 k_fatal_halt(reason); in k_sys_fatal_error_handler()
27 if (reason != expected_reason) { in k_sys_fatal_error_handler()
28 printk("Wrong crash type got %d expected %d\n", reason, in k_sys_fatal_error_handler()
30 k_fatal_halt(reason); in k_sys_fatal_error_handler()
/Zephyr-latest/tests/kernel/fatal/message_capture/src/
Dmain.c15 void k_sys_fatal_error_handler(unsigned int reason, const struct arch_esf *pEsf) in k_sys_fatal_error_handler() argument
17 printk("Caught system error -- reason %d\n", reason); in k_sys_fatal_error_handler()
22 k_fatal_halt(reason); in k_sys_fatal_error_handler()
25 if (reason != expected_reason) { in k_sys_fatal_error_handler()
26 printk("Wrong crash type got %d expected %d\n", reason, in k_sys_fatal_error_handler()
29 k_fatal_halt(reason); in k_sys_fatal_error_handler()
/Zephyr-latest/tests/arch/arm/arm_interrupt/src/
Darm_interrupt.c91 void k_sys_fatal_error_handler(unsigned int reason, const struct arch_esf *pEsf) in k_sys_fatal_error_handler() argument
93 TC_PRINT("Caught system error -- reason %d\n", reason); in k_sys_fatal_error_handler()
97 k_fatal_halt(reason); in k_sys_fatal_error_handler()
100 if (reason != expected_reason) { in k_sys_fatal_error_handler()
101 printk("Wrong crash type got %d expected %d\n", reason, in k_sys_fatal_error_handler()
103 k_fatal_halt(reason); in k_sys_fatal_error_handler()
236 int reason = expected_reason; in arm_isr_handler() local
238 zassert_equal(reason, -1, in arm_isr_handler()
239 "expected_reason has not been reset (%d)\n", reason); in arm_isr_handler()
248 int init_flag, post_flag, reason; in ZTEST() local
[all …]
/Zephyr-latest/include/zephyr/
Dfatal.h37 FUNC_NORETURN void k_fatal_halt(unsigned int reason);
68 void k_sys_fatal_error_handler(unsigned int reason, const struct arch_esf *esf);
84 void z_fatal_error(unsigned int reason, const struct arch_esf *esf);
/Zephyr-latest/tests/kernel/mem_protect/mem_protect/src/
Dcommon.c11 void k_sys_fatal_error_handler(unsigned int reason, const struct arch_esf *pEsf) in k_sys_fatal_error_handler() argument
13 printk("Caught system error -- reason %d %d\n", reason, valid_fault); in k_sys_fatal_error_handler()
20 k_fatal_halt(reason); in k_sys_fatal_error_handler()
/Zephyr-latest/arch/riscv/core/
Dfatal.c80 FUNC_NORETURN void z_riscv_fatal_error(unsigned int reason, in z_riscv_fatal_error() argument
83 z_riscv_fatal_error_csf(reason, esf, NULL); in z_riscv_fatal_error()
86 FUNC_NORETURN void z_riscv_fatal_error_csf(unsigned int reason, const struct arch_esf *esf, in z_riscv_fatal_error_csf() argument
147 z_fatal_error(reason, esf); in z_riscv_fatal_error_csf()
224 unsigned int reason = K_ERR_CPU_EXCEPTION; in _Fault() local
234 reason = K_ERR_STACK_CHK_FAIL; in _Fault()
237 z_riscv_fatal_error(reason, esf); in _Fault()
247 void z_impl_user_fault(unsigned int reason) in z_impl_user_fault() argument
252 reason != K_ERR_STACK_CHK_FAIL) { in z_impl_user_fault()
253 reason = K_ERR_KERNEL_OOPS; in z_impl_user_fault()
[all …]
/Zephyr-latest/tests/arch/arm/arm_no_multithreading/src/
Dmain.c39 void k_sys_fatal_error_handler(unsigned int reason, const struct arch_esf *pEsf) in k_sys_fatal_error_handler() argument
41 printk("Caught system error -- reason %d\n", reason); in k_sys_fatal_error_handler()
45 k_fatal_halt(reason); in k_sys_fatal_error_handler()
48 if (reason != expected_reason) { in k_sys_fatal_error_handler()
49 printk("Wrong crash type got %d expected %d\n", reason, in k_sys_fatal_error_handler()
51 k_fatal_halt(reason); in k_sys_fatal_error_handler()
/Zephyr-latest/subsys/testsuite/ztest/src/
Dztest_error_hook.c44 __weak void ztest_post_fatal_error_hook(unsigned int reason, in ztest_post_fatal_error_hook() argument
49 void k_sys_fatal_error_handler(unsigned int reason, const struct arch_esf *pEsf) in k_sys_fatal_error_handler() argument
54 printk("Caught system error -- reason %d %d\n", reason, valid_fault); in k_sys_fatal_error_handler()
63 ztest_post_fatal_error_hook(reason, pEsf); in k_sys_fatal_error_handler()
66 k_fatal_halt(reason); in k_sys_fatal_error_handler()
/Zephyr-latest/scripts/coredump/coredump_parser/
Dlog_parser.py34 def reason_string(reason): argument
38 if reason == 0:
40 elif reason == 1:
42 elif reason == 2:
44 elif reason == 3:
46 elif reason == 4:
139 id1, id2, hdr_ver, tgt_code, ptr_size, flags, reason = struct.unpack(LOG_HDR_STRUCT, hdr)
157 "reason": reason,
160 logger.info("Reason: {0}".format(reason_string(reason)))
163 del id1, id2, hdr_ver, tgt_code, ptr_size, flags, reason
/Zephyr-latest/arch/arm/core/
Dfatal.c69 void z_arm_fatal_error(unsigned int reason, const struct arch_esf *esf) in z_arm_fatal_error() argument
79 if (reason == K_ERR_SPURIOUS_IRQ) { in z_arm_fatal_error()
86 z_fatal_error(reason, esf); in z_arm_fatal_error()
112 unsigned int reason = esf->basic.r0; in z_do_kernel_oops() local
127 reason = K_ERR_KERNEL_OOPS; in z_do_kernel_oops()
134 z_arm_fatal_error(reason, esf); in z_do_kernel_oops()
155 z_arm_fatal_error(reason, &esf_copy); in z_do_kernel_oops()
/Zephyr-latest/arch/arc/core/
Dfatal.c45 void z_arc_fatal_error(unsigned int reason, const struct arch_esf *esf) in z_arc_fatal_error() argument
53 z_fatal_error(reason, esf); in z_arc_fatal_error()
65 FUNC_NORETURN void arch_system_halt(unsigned int reason) in arch_system_halt() argument
67 ARG_UNUSED(reason); in arch_system_halt()
/Zephyr-latest/tests/arch/riscv/pmp/no-multithreading/src/
Dmain.c12 void k_sys_fatal_error_handler(unsigned int reason, const struct arch_esf *pEsf) in k_sys_fatal_error_handler() argument
16 TC_PRINT("Caught system error -- reason %d %d\n", reason, valid_fault); in k_sys_fatal_error_handler()
23 arch_system_halt(reason); in k_sys_fatal_error_handler()
/Zephyr-latest/tests/kernel/fatal/no-multithreading/src/
Dmain.c16 void k_sys_fatal_error_handler(unsigned int reason, const struct arch_esf *pEsf) in k_sys_fatal_error_handler() argument
20 TC_PRINT("Caught system error -- reason %d\n", reason); in k_sys_fatal_error_handler()
21 if (reason != expected_reason) { in k_sys_fatal_error_handler()
27 arch_system_halt(reason); in k_sys_fatal_error_handler()
/Zephyr-latest/arch/posix/core/
Dfatal.c18 FUNC_NORETURN void arch_system_halt(unsigned int reason) in arch_system_halt() argument
20 ARG_UNUSED(reason); in arch_system_halt()
/Zephyr-latest/arch/arm64/core/
Dfatal.c348 void z_arm64_fatal_error(unsigned int reason, struct arch_esf *esf) in z_arm64_fatal_error() argument
355 if (reason != K_ERR_SPURIOUS_IRQ) { in z_arm64_fatal_error()
375 reason = K_ERR_STACK_CHK_FAIL; in z_arm64_fatal_error()
380 reason != K_ERR_STACK_CHK_FAIL && in z_arm64_fatal_error()
401 reason != K_ERR_STACK_CHK_FAIL) { in z_arm64_fatal_error()
417 z_fatal_error(reason, esf); in z_arm64_fatal_error()
431 unsigned int reason = esf->x8; in z_arm64_do_kernel_oops() local
439 reason != K_ERR_STACK_CHK_FAIL) { in z_arm64_do_kernel_oops()
440 reason = K_ERR_KERNEL_OOPS; in z_arm64_do_kernel_oops()
444 z_arm64_fatal_error(reason, esf); in z_arm64_do_kernel_oops()
[all …]
/Zephyr-latest/arch/nios2/core/
Dfatal.c14 FUNC_NORETURN void z_nios2_fatal_error(unsigned int reason, in z_nios2_fatal_error() argument
39 z_fatal_error(reason, esf); in z_nios2_fatal_error()
137 FUNC_NORETURN void arch_system_halt(unsigned int reason) in arch_system_halt() argument
139 ARG_UNUSED(reason); in arch_system_halt()

12345678910>>...22