|
Zephyr API Documentation 4.1.99
A Scalable Open Source RTOS
|
#include <zephyr/ztest.h>#include <zephyr/arch/cpu.h>#include <cmsis_core.h>#include <zephyr/kernel_structs.h>#include <zephyr/sys/barrier.h>#include <offsets_short_arch.h>#include <ksched.h>Macros | |
| #define | PRIORITY 0 |
| #define | BASEPRI_MODIFIED_1 0x20 |
| #define | BASEPRI_MODIFIED_2 0x40 |
| #define | SWAP_RETVAL 0x1234 |
| #define | EXC_RETURN_FTYPE (0x00000010UL) |
| #define | FPSCR_MASK (0xffffffffU) |
| #define | ALT_THREAD_OPTIONS K_FP_REGS |
Functions | |
| static | K_THREAD_STACK_DEFINE (alt_thread_stack, 1024) |
| static void | load_callee_saved_regs (const _callee_saved_t *regs) |
| static void | verify_callee_saved (const _callee_saved_t *src, const _callee_saved_t *dst) |
| static void | load_fp_callee_saved_regs (const volatile struct _preempt_float *regs) |
| static void | verify_fp_callee_saved (const struct _preempt_float *src, const struct _preempt_float *dst) |
| static void | alt_thread_entry (void *p1, void *p2, void *p3) |
| static int __noinline | arch_swap_wrapper (void) |
| void | test_arm_thread_swap (void) |
| Test the ARM thread swap mechanism. | |
Variables | |
| static struct k_thread | alt_thread |
| bool volatile | switch_flag |
| struct k_thread * | p_ztest_thread |
| _callee_saved_t | ztest_thread_callee_saved_regs_container |
| int | ztest_swap_return_val |
| const _callee_saved_t | ztest_thread_callee_saved_regs_init |
| struct _preempt_float | ztest_thread_fp_callee_saved_regs |
| #define ALT_THREAD_OPTIONS K_FP_REGS |
| #define BASEPRI_MODIFIED_1 0x20 |
| #define BASEPRI_MODIFIED_2 0x40 |
| #define EXC_RETURN_FTYPE (0x00000010UL) |
| #define FPSCR_MASK (0xffffffffU) |
| #define PRIORITY 0 |
| #define SWAP_RETVAL 0x1234 |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
| struct k_thread* p_ztest_thread |
| bool volatile switch_flag |
| int ztest_swap_return_val |
| _callee_saved_t ztest_thread_callee_saved_regs_container |
| const _callee_saved_t ztest_thread_callee_saved_regs_init |
| struct _preempt_float ztest_thread_fp_callee_saved_regs |