Lines Matching +full:zephyr +full:- +full:based
4 * SPDX-License-Identifier: Apache-2.0
7 #include <zephyr/kernel.h>
8 #include <zephyr/ztest.h>
9 #include <zephyr/tc_util.h>
10 #include <zephyr/kernel_structs.h>
11 #include <zephyr/irq_offload.h>
16 #include <zephyr/kernel/mm.h>
17 #include <zephyr/internal/syscall_handler.h>
22 #include <zephyr/kernel/mm/demand_paging.h>
38 alt_stack + (STACKSIZE - OVERFLOW_STACKSIZE);
51 static ZTEST_DMEM volatile int expected_reason = -1;
55 TC_PRINT("Caught system error -- reason %d\n", reason); in k_sys_fatal_error_handler()
57 if (expected_reason == -1) { in k_sys_fatal_error_handler()
76 expected_reason = -1; in k_sys_fatal_error_handler()
174 expected_reason = -2; in entry_arbitrary_reason_negative()
176 z_except_reason(-2); in entry_arbitrary_reason_negative()
197 #pragma GCC diagnostic ignored "-Wpragmas"
198 #pragma GCC diagnostic ignored "-Winfinite-recursion"
228 #include <zephyr/syscalls/blow_up_priv_stack_mrsh.c>
314 * priority -1. To run the test smoothly make both main and ztest in ZTEST()
394 TC_PRINT("test stack sentinel overflow - timer irq\n"); in ZTEST()
397 TC_PRINT("test stack sentinel overflow - swap\n"); in ZTEST()
402 /* HW based stack overflow detection. in ZTEST()
403 * Do this twice to show that HW-based solutions work more than in ZTEST()
407 TC_PRINT("test stack HW-based overflow - supervisor 1\n"); in ZTEST()
410 TC_PRINT("test stack HW-based overflow - supervisor 2\n"); in ZTEST()
414 TC_PRINT("test stack HW-based overflow (FPU thread) - supervisor 1\n"); in ZTEST()
417 TC_PRINT("test stack HW-based overflow (FPU thread) - supervisor 2\n"); in ZTEST()
423 TC_PRINT("test stack HW-based overflow - user 1\n"); in ZTEST()
426 TC_PRINT("test stack HW-based overflow - user 2\n"); in ZTEST()
429 TC_PRINT("test stack HW-based overflow - user priv stack 1\n"); in ZTEST()
432 TC_PRINT("test stack HW-based overflow - user priv stack 2\n"); in ZTEST()
436 TC_PRINT("test stack HW-based overflow (FPU thread) - user 1\n"); in ZTEST()
439 TC_PRINT("test stack HW-based overflow (FPU thread) - user 2\n"); in ZTEST()