Zephyr Project API 3.7.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
load_store.c File Reference
#include <zephyr/ztest.h>
#include <zephyr/debug/gcov.h>
#include "float_context.h"
#include "test_common.h"

Functions

static K_SEM_DEFINE (test_exit_sem, 0, 1)
 
static void load_store_low (void)
 Low priority FPU load/store thread.
 
static void load_store_high (void)
 High priority FPU load/store thread.
 
 K_THREAD_DEFINE (load_low,(1024+CONFIG_TEST_EXTRA_STACK_SIZE), load_store_low, NULL, NULL, NULL, 10,(K_FP_REGS), K_TICKS_FOREVER)
 
 K_THREAD_DEFINE (load_high,(1024+CONFIG_TEST_EXTRA_STACK_SIZE), load_store_high, NULL, NULL, NULL, 5,(K_FP_REGS), K_TICKS_FOREVER)
 
 ZTEST (fpu_sharing_generic, test_load_store)
 

Variables

static struct fp_register_set float_reg_set_load
 
static struct fp_register_set float_reg_set_store
 
static struct fp_register_set float_reg_set
 
static volatile unsigned int load_store_low_count
 
static volatile unsigned int load_store_high_count
 
static volatile bool test_exited
 

Function Documentation

◆ K_SEM_DEFINE()

static K_SEM_DEFINE ( test_exit_sem  ,
,
 
)
static

◆ K_THREAD_DEFINE() [1/2]

K_THREAD_DEFINE ( load_high  ,
(1024+CONFIG_TEST_EXTRA_STACK_SIZE)  ,
load_store_high  ,
NULL  ,
NULL  ,
NULL  ,
,
(K_FP_REGS ,
K_TICKS_FOREVER   
)

◆ K_THREAD_DEFINE() [2/2]

K_THREAD_DEFINE ( load_low  ,
(1024+CONFIG_TEST_EXTRA_STACK_SIZE)  ,
load_store_low  ,
NULL  ,
NULL  ,
NULL  ,
10  ,
(K_FP_REGS ,
K_TICKS_FOREVER   
)

◆ load_store_high()

static void load_store_high ( void  )
static

High priority FPU load/store thread.

See also
_load_then_store_all_float_registers()

◆ load_store_low()

static void load_store_low ( void  )
static

Low priority FPU load/store thread.

See also
k_sched_time_slice_set(), memset(), _load_all_float_registers(), _store_all_float_registers()

◆ ZTEST()

ZTEST ( fpu_sharing_generic  ,
test_load_store   
)

Variable Documentation

◆ float_reg_set

struct fp_register_set float_reg_set
static

◆ float_reg_set_load

struct fp_register_set float_reg_set_load
static

◆ float_reg_set_store

struct fp_register_set float_reg_set_store
static

◆ load_store_high_count

volatile unsigned int load_store_high_count
static

◆ load_store_low_count

volatile unsigned int load_store_low_count
static

◆ test_exited

volatile bool test_exited
static