TF-M Reference Manual  1.2.0
TrustedFirmware-M
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
tfm_thread.c File Reference
#include <inttypes.h>
#include "tfm_arch.h"
#include "tfm_thread.h"
#include "utilities.h"
#include "tfm_memory_utils.h"
#include "tfm/tfm_core_svc.h"
#include "tfm_core_utils.h"
Include dependency graph for tfm_thread.c:

Go to the source code of this file.

Macros

#define LIST_HEAD   p_thrd_head
 
#define RUNN_HEAD   p_runn_head
 
#define CURR_THRD   p_curr_thrd
 

Functions

struct tfm_core_thread_ttfm_core_thrd_get_next_thread (void)
 
struct tfm_core_thread_ttfm_core_thrd_get_curr_thread (void)
 
void tfm_core_thrd_init (struct tfm_core_thread_t *pth, tfm_core_thrd_entry_t pfn, void *param, uintptr_t stk_top, uintptr_t stk_btm)
 
uint32_t tfm_core_thrd_start (struct tfm_core_thread_t *pth)
 
void tfm_core_thrd_set_state (struct tfm_core_thread_t *pth, uint32_t new_state)
 
void tfm_core_thrd_activate_schedule (void)
 
void tfm_core_thrd_start_scheduler (struct tfm_core_thread_t *pth)
 
void tfm_core_thrd_switch_context (struct tfm_arch_ctx_t *p_actx, struct tfm_core_thread_t *prev, struct tfm_core_thread_t *next)
 

Macro Definition Documentation

#define CURR_THRD   p_curr_thrd

Definition at line 23 of file tfm_thread.c.

#define LIST_HEAD   p_thrd_head

Definition at line 21 of file tfm_thread.c.

#define RUNN_HEAD   p_runn_head

Definition at line 22 of file tfm_thread.c.

Function Documentation

void tfm_core_thrd_activate_schedule ( void  )

Definition at line 129 of file tfm_thread.c.

Here is the call graph for this function:

Here is the caller graph for this function:

struct tfm_core_thread_t* tfm_core_thrd_get_curr_thread ( void  )

Definition at line 46 of file tfm_thread.c.

Here is the caller graph for this function:

struct tfm_core_thread_t* tfm_core_thrd_get_next_thread ( void  )

Definition at line 36 of file tfm_thread.c.

Here is the caller graph for this function:

void tfm_core_thrd_init ( struct tfm_core_thread_t pth,
tfm_core_thrd_entry_t  pfn,
void *  param,
uintptr_t  stk_top,
uintptr_t  stk_btm 
)

Definition at line 85 of file tfm_thread.c.

Here is the caller graph for this function:

void tfm_core_thrd_set_state ( struct tfm_core_thread_t pth,
uint32_t  new_state 
)

Definition at line 120 of file tfm_thread.c.

Here is the caller graph for this function:

uint32_t tfm_core_thrd_start ( struct tfm_core_thread_t pth)

Definition at line 97 of file tfm_thread.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void tfm_core_thrd_start_scheduler ( struct tfm_core_thread_t pth)

Definition at line 134 of file tfm_thread.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void tfm_core_thrd_switch_context ( struct tfm_arch_ctx_t p_actx,
struct tfm_core_thread_t prev,
struct tfm_core_thread_t next 
)

Definition at line 153 of file tfm_thread.c.

Here is the call graph for this function:

Here is the caller graph for this function: