Zephyr API Documentation  2.7.0-rc2
A Scalable Open Source RTOS
load_store.c File Reference
#include <ztest.h>
#include <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. More...
 
static void load_store_high (void)
 High priority FPU load/store thread. More...
 
 K_THREAD_DEFINE (load_low,(1024+CONFIG_TEST_EXTRA_STACKSIZE), load_store_low, NULL, NULL, NULL, 10,(K_FP_REGS), K_TICKS_FOREVER)
 
 K_THREAD_DEFINE (load_high,(1024+CONFIG_TEST_EXTRA_STACKSIZE), load_store_high, NULL, NULL, NULL, 5,(K_FP_REGS), K_TICKS_FOREVER)
 
void test_load_store (void)
 

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_STACKSIZE)  ,
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_STACKSIZE)  ,
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()

◆ test_load_store()

void test_load_store ( void  )

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