Home
last modified time | relevance | path

Searched refs:cause (Results 1 – 25 of 150) sorted by relevance

123456

/Zephyr-latest/drivers/hwinfo/
Dhwinfo_rw61x.c44 int z_impl_hwinfo_get_reset_cause(uint32_t *cause) in z_impl_hwinfo_get_reset_cause() argument
47 *cause = 0; in z_impl_hwinfo_get_reset_cause()
55 *cause = RESET_SOFTWARE; in z_impl_hwinfo_get_reset_cause()
58 *cause = RESET_CPU_LOCKUP; in z_impl_hwinfo_get_reset_cause()
61 *cause = RESET_WATCHDOG; in z_impl_hwinfo_get_reset_cause()
64 *cause = RESET_DEBUG; in z_impl_hwinfo_get_reset_cause()
68 *cause = RESET_SECURITY; in z_impl_hwinfo_get_reset_cause()
71 *cause = RESET_HARDWARE; in z_impl_hwinfo_get_reset_cause()
74 *cause = 0; in z_impl_hwinfo_get_reset_cause()
Dhwinfo_esp32.c64 int z_impl_hwinfo_get_reset_cause(uint32_t *cause) in z_impl_hwinfo_get_reset_cause() argument
70 *cause = RESET_POR; in z_impl_hwinfo_get_reset_cause()
73 *cause = RESET_PIN; in z_impl_hwinfo_get_reset_cause()
76 *cause = RESET_SOFTWARE; in z_impl_hwinfo_get_reset_cause()
81 *cause = RESET_WATCHDOG; in z_impl_hwinfo_get_reset_cause()
84 *cause = RESET_LOW_POWER_WAKE; in z_impl_hwinfo_get_reset_cause()
87 *cause = RESET_CPU_LOCKUP; in z_impl_hwinfo_get_reset_cause()
89 *cause = RESET_BROWNOUT; in z_impl_hwinfo_get_reset_cause()
92 *cause = 0; in z_impl_hwinfo_get_reset_cause()
Dhwinfo_shell.c68 static inline const char *cause_to_string(uint32_t cause) in cause_to_string() argument
70 switch (cause) { in cause_to_string()
121 static void print_all_reset_causes(const struct shell *sh, uint32_t cause) in print_all_reset_causes() argument
124 if (cause & cause_mask) { in print_all_reset_causes()
126 cause_to_string(cause & cause_mask)); in print_all_reset_causes()
135 uint32_t cause; in cmd_show_reset_cause() local
140 res = hwinfo_get_reset_cause(&cause); in cmd_show_reset_cause()
149 if (cause != 0) { in cmd_show_reset_cause()
151 print_all_reset_causes(sh, cause); in cmd_show_reset_cause()
181 uint32_t cause; in cmd_supported_reset_cause() local
[all …]
Dhwinfo_sam_rstc.c17 int z_impl_hwinfo_get_reset_cause(uint32_t *cause) in z_impl_hwinfo_get_reset_cause() argument
24 *cause = RESET_POR; in z_impl_hwinfo_get_reset_cause()
27 *cause = RESET_LOW_POWER_WAKE; in z_impl_hwinfo_get_reset_cause()
30 *cause = RESET_WATCHDOG; in z_impl_hwinfo_get_reset_cause()
33 *cause = RESET_SOFTWARE; in z_impl_hwinfo_get_reset_cause()
36 *cause = RESET_USER; in z_impl_hwinfo_get_reset_cause()
Dhwinfo_cc13xx_cc26xx.c55 int z_impl_hwinfo_get_reset_cause(uint32_t *cause) in z_impl_hwinfo_get_reset_cause() argument
63 *cause = RESET_POR; in z_impl_hwinfo_get_reset_cause()
66 *cause = RESET_PIN; in z_impl_hwinfo_get_reset_cause()
71 *cause = RESET_BROWNOUT; in z_impl_hwinfo_get_reset_cause()
74 *cause = RESET_CLOCK; in z_impl_hwinfo_get_reset_cause()
77 *cause = RESET_SOFTWARE; in z_impl_hwinfo_get_reset_cause()
Dhwinfo_smartbond.c11 int z_impl_hwinfo_get_reset_cause(uint32_t *cause) in z_impl_hwinfo_get_reset_cause() argument
40 *cause = flags; in z_impl_hwinfo_get_reset_cause()
Dhwinfo_mcux_rcm.c89 int z_impl_hwinfo_get_reset_cause(uint32_t *cause) in z_impl_hwinfo_get_reset_cause() argument
99 *cause = hwinfo_mcux_rcm_xlate_reset_sources(sources); in z_impl_hwinfo_get_reset_cause()
101 LOG_DBG("sources = 0x%08x, cause = 0x%08x", sources, *cause); in z_impl_hwinfo_get_reset_cause()
Dhwinfo_handlers.c26 int z_vrfy_hwinfo_get_reset_cause(uint32_t *cause) in z_vrfy_hwinfo_get_reset_cause() argument
32 K_OOPS(k_usermode_to_copy(cause, &cause_copy, sizeof(uint32_t))); in z_vrfy_hwinfo_get_reset_cause()
Dhwinfo_rpi_pico.c52 int z_impl_hwinfo_get_reset_cause(uint32_t *cause) in z_impl_hwinfo_get_reset_cause() argument
85 *cause = flags; in z_impl_hwinfo_get_reset_cause()
Dhwinfo_mcux_src_rev2.c44 int z_impl_hwinfo_get_reset_cause(uint32_t *cause) in z_impl_hwinfo_get_reset_cause() argument
74 *cause = flags; in z_impl_hwinfo_get_reset_cause()
Dhwinfo_andes.c59 int z_impl_hwinfo_get_reset_cause(uint32_t *cause) in z_impl_hwinfo_get_reset_cause() argument
89 *cause = flags; in z_impl_hwinfo_get_reset_cause()
Dhwinfo_ambiq.c48 int z_impl_hwinfo_get_reset_cause(uint32_t *cause) in z_impl_hwinfo_get_reset_cause() argument
113 *cause = flags; in z_impl_hwinfo_get_reset_cause()
DKconfig83 bool "NXP kinetis reset cause"
99 bool "NXP SRC reset cause"
107 bool "NXP SRC reset cause (multicore devices)"
140 bool "Atmel SAM reset cause"
145 Enable Atmel SAM reset cause hwinfo driver.
172 bool "Smartbond device reset cause"
177 Enable Smartbond reset cause hwinfo driver.
/Zephyr-latest/arch/mips/core/
Dfatal.c33 LOG_ERR("Cause : %08lx\n", esf->cause); in z_mips_fatal_error()
41 static char *cause_str(unsigned long cause) in cause_str() argument
43 switch (cause) { in cause_str()
89 unsigned long cause; in _Fault() local
91 cause = (read_c0_cause() & CAUSE_EXP_MASK) >> CAUSE_EXP_SHIFT; in _Fault()
94 LOG_ERR(" cause: %ld, %s", cause, cause_str(cause)); in _Fault()
Dirq_manage.c20 unsigned long cause; in z_irq_spurious() local
23 cause = (read_c0_cause() & CAUSE_EXP_MASK) >> CAUSE_EXP_SHIFT; in z_irq_spurious()
25 LOG_ERR("Spurious interrupt detected! CAUSE: %ld", cause); in z_irq_spurious()
/Zephyr-latest/arch/arc/core/
Dfault.c137 static void dump_protv_exception(uint32_t cause, uint32_t parameter) in dump_protv_exception() argument
139 switch (cause) { in dump_protv_exception()
171 static void dump_machine_check_exception(uint32_t cause, uint32_t parameter) in dump_machine_check_exception() argument
173 switch (cause) { in dump_machine_check_exception()
219 static void dump_privilege_exception(uint32_t cause, uint32_t parameter) in dump_privilege_exception() argument
221 switch (cause) { in dump_privilege_exception()
275 static void dump_exception_info(uint32_t vector, uint32_t cause, uint32_t parameter) in dump_exception_info() argument
297 dump_machine_check_exception(cause, parameter); in dump_exception_info()
307 dump_protv_exception(cause, parameter); in dump_exception_info()
311 dump_privilege_exception(cause, parameter); in dump_exception_info()
[all …]
/Zephyr-latest/arch/nios2/core/
Dfatal.c111 enum nios2_exception_cause cause; in _Fault() local
119 cause = (exc_reg & NIOS2_EXCEPTION_REG_CAUSE_MASK) in _Fault()
122 LOG_ERR("Exception cause: %d ECCFTL: 0x%x", cause, eccftl); in _Fault()
124 LOG_ERR("reason: %s", cause_str(cause)); in _Fault()
126 if (BIT(cause) & NIOS2_BADADDR_CAUSE_MASK) { in _Fault()
/Zephyr-latest/arch/xtensa/core/
Dvector_handlers.c220 static void print_fatal_exception(void *print_stack, int cause, in print_fatal_exception() argument
236 arch_curr_cpu()->id, cause, in print_fatal_exception()
237 xtensa_exccause(cause)); in print_fatal_exception()
346 int cause, reason; in xtensa_excint1_c() local
357 cause = XTENSA_RSR(ZSR_EXCCAUSE_SAVE_STR); in xtensa_excint1_c()
361 __asm__ volatile("rsr.exccause %0" : "=r"(cause)); in xtensa_excint1_c()
364 switch (cause) { in xtensa_excint1_c()
418 if (cause == EXCCAUSE_ILLEGAL) { in xtensa_excint1_c()
420 cause = 63; in xtensa_excint1_c()
421 __asm__ volatile("wsr.exccause %0" : : "r"(cause)); in xtensa_excint1_c()
[all …]
Dxtensa_backtrace.c21 static int mask, cause; variable
29 if (cause != EXCCAUSE_INSTR_PROHIBITED) { in xtensa_cpu_process_stack_pc()
128 cause = bsa->exccause; in xtensa_backtrace_print()
136 if (cause != EXCCAUSE_INSTR_PROHIBITED) { in xtensa_backtrace_print()
149 cause == EXCCAUSE_INSTR_PROHIBITED)); in xtensa_backtrace_print()
/Zephyr-latest/samples/boards/st/power_mgmt/standby_shutdown/src/
Dmain.c95 uint32_t cause; in main() local
97 hwinfo_get_reset_cause(&cause); in main()
100 if (cause == RESET_LOW_POWER_WAKE) { in main()
105 if (cause == (RESET_PIN | RESET_BROWNOUT)) { in main()
109 if (cause == RESET_PIN) { in main()
/Zephyr-latest/tests/drivers/hwinfo/api/src/
Dmain.c88 uint32_t cause; in ZTEST() local
92 cause = 0xDEADBEEF; in ZTEST()
94 ret = hwinfo_get_reset_cause(&cause); in ZTEST()
104 zassert_not_equal(cause, 0xDEADBEEF, "Reset cause not written."); in ZTEST()
/Zephyr-latest/samples/boards/nxp/mimxrt1170_evk_cm7/magic_addr/src/
Dmain.c19 void flexram_magic_addr_isr_cb(enum memc_flexram_interrupt_cause cause, in flexram_magic_addr_isr_cb() argument
24 if (cause == flexram_dtcm_magic_addr) { in flexram_magic_addr_isr_cb()
/Zephyr-latest/include/zephyr/drivers/
Dhwinfo.h134 __syscall int hwinfo_get_reset_cause(uint32_t *cause);
136 int z_impl_hwinfo_get_reset_cause(uint32_t *cause);
/Zephyr-latest/doc/hardware/peripherals/
Dhwinfo.rst10 identifiers and reset cause flags.
12 Reset cause flags can be used to determine why the device was reset; for
/Zephyr-latest/modules/trusted-firmware-m/
DKconfig.tfm.partitions15 Setting this option will cause '-DTFM_PARTITION_PROTECTED_STORAGE'
26 Setting this option will cause '-DTFM_PARTITION_INTERNAL_TRUSTED_STORAGE'
37 Setting this option will cause '-DTFM_PARTITION_CRYPTO'
49 Setting this option will cause '-DTFM_PARTITION_INITIAL_ATTESTATION'
60 Setting this option will cause '-DTFM_PARTITION_PLATFORM'
72 Setting this option will cause '-DTFM_PARTITION_FIRMWARE_UPDATE'

123456