Zephyr Project API 3.7.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
main.c File Reference
#include <zephyr/tc_util.h>
#include <zephyr/ztest.h>
#include <zephyr/kernel.h>
#include <zephyr/irq_offload.h>

Data Structures

struct  isr_args
 

Macros

#define NUM_THREADS   CONFIG_MP_MAX_NUM_CPUS
 
#define STACK_SIZE   1024
 

Functions

 K_THREAD_STACK_ARRAY_DEFINE (thread_stack, CONFIG_MP_MAX_NUM_CPUS, 1024)
 
static void isr (const void *args)
 
static void thread_entry (void *p1, void *p2, void *p3)
 
 ZTEST (smp_abort, test_smp_thread_abort_deadlock)
 
 ZTEST_SUITE (smp_abort, NULL, NULL, NULL, NULL, NULL)
 

Variables

struct k_thread thread [CONFIG_MP_MAX_NUM_CPUS]
 
volatile bool sync [CONFIG_MP_MAX_NUM_CPUS]
 
struct isr_args isr_args [CONFIG_MP_MAX_NUM_CPUS]
 

Macro Definition Documentation

◆ NUM_THREADS

#define NUM_THREADS   CONFIG_MP_MAX_NUM_CPUS

◆ STACK_SIZE

#define STACK_SIZE   1024

Function Documentation

◆ isr()

static void isr ( const void *  args)
static

◆ K_THREAD_STACK_ARRAY_DEFINE()

K_THREAD_STACK_ARRAY_DEFINE ( thread_stack  ,
CONFIG_MP_MAX_NUM_CPUS  ,
1024   
)

◆ thread_entry()

static void thread_entry ( void *  p1,
void *  p2,
void *  p3 
)
static

◆ ZTEST()

ZTEST ( smp_abort  ,
test_smp_thread_abort_deadlock   
)

◆ ZTEST_SUITE()

ZTEST_SUITE ( smp_abort  ,
NULL  ,
NULL  ,
NULL  ,
NULL  ,
NULL   
)

Variable Documentation

◆ isr_args

struct isr_args isr_args[CONFIG_MP_MAX_NUM_CPUS]

◆ sync

volatile bool sync[CONFIG_MP_MAX_NUM_CPUS]

◆ thread

struct k_thread thread[CONFIG_MP_MAX_NUM_CPUS]