Lines Matching +full:use +full:- +full:case

4  * SPDX-License-Identifier: Apache-2.0
24 /* test case type */
73 /* As this test case only runs when User Mode is enabled, in trigger_fault_access()
82 * Note: this is not applicable for ARM Cortex-M: in trigger_fault_access()
83 * In Cortex-M, nPRIV read access to address 0x0 is generally allowed, in trigger_fault_access()
85 * 0x0. So, de-referencing NULL pointer is not guaranteed to trigger an in trigger_fault_access()
116 * For the Cortex-M0, M0+, M23 (CONFIG_ARMV6_M_ARMV8_M_BASELINE) in trigger_fault_divide_zero()
119 * For ARMv8-R, divide by zero trapping is not supported in hardware. in trigger_fault_divide_zero()
154 * to define the hook yourself. If not, the program will use the
161 case ZTEST_CATCH_FATAL_ACCESS: in ztest_post_fatal_error_hook()
162 case ZTEST_CATCH_FATAL_ILLEAGAL_INSTRUCTION: in ztest_post_fatal_error_hook()
163 case ZTEST_CATCH_FATAL_DIVIDE_ZERO: in ztest_post_fatal_error_hook()
164 case ZTEST_CATCH_FATAL_K_PANIC: in ztest_post_fatal_error_hook()
165 case ZTEST_CATCH_FATAL_K_OOPS: in ztest_post_fatal_error_hook()
166 case ZTEST_CATCH_USER_FATAL_K_OOPS: in ztest_post_fatal_error_hook()
170 /* Unfortunately, the case of trigger a fatal error in ztest_post_fatal_error_hook()
172 * So please don't use it this way. in ztest_post_fatal_error_hook()
174 case ZTEST_CATCH_FATAL_IN_ISR: in ztest_post_fatal_error_hook()
185 * the hook yourself. If not, the program will use the default one.
190 case ZTEST_CATCH_ASSERT_FAIL: in ztest_post_assert_fail_hook()
193 case ZTEST_CATCH_ASSERT_IN_ISR: in ztest_post_assert_fail_hook()
211 printk("case type is %d\n", case_type); in tThread_entry()
216 case ZTEST_CATCH_FATAL_ACCESS: in tThread_entry()
220 case ZTEST_CATCH_FATAL_ILLEAGAL_INSTRUCTION: in tThread_entry()
224 case ZTEST_CATCH_FATAL_DIVIDE_ZERO: in tThread_entry()
228 case ZTEST_CATCH_FATAL_K_PANIC: in tThread_entry()
232 case ZTEST_CATCH_FATAL_K_OOPS: in tThread_entry()
281 * Because RISC-V Arch doesn't trigger exception for division-by-zero, in ZTEST_USER()
282 * this test couldn't support RISC-V. in ZTEST_USER()
283 * (RISC-V ISA Manual v2.2, Ch6.2 Division Operation) in ZTEST_USER()
341 arch_current_thread()->syscall_frame = _image_ram_start; in trigger_z_oops()