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

Go to the source code of this file.

Data Structures

union  tfm_mem_addr_t
 

Macros

#define GET_MEM_ADDR_BIT0(x)   ((x) & 0x1)
 
#define GET_MEM_ADDR_BIT1(x)   ((x) & 0x2)
 

Functions

void * spm_memcpy (void *dest, const void *src, size_t n)
 Memory copy function for TF-M core. More...
 
void * spm_memset (void *s, int c, size_t n)
 Memory set function for TF-M core. More...
 

Macro Definition Documentation

#define GET_MEM_ADDR_BIT0 (   x)    ((x) & 0x1)

Definition at line 11 of file tfm_core_utils.c.

#define GET_MEM_ADDR_BIT1 (   x)    ((x) & 0x2)

Definition at line 12 of file tfm_core_utils.c.

Function Documentation

void* spm_memcpy ( void *  dest,
const void *  src,
size_t  n 
)

Memory copy function for TF-M core.

Parameters
[out]destDestination address of memory
[in]srcSource address of memory
[in]nNumber of bytes to copy
Return values
Destinationaddress of memory
Note
The function is used for copying same-sized object only.

Definition at line 21 of file tfm_core_utils.c.

Here is the caller graph for this function:

void* spm_memset ( void *  s,
int  c,
size_t  n 
)

Memory set function for TF-M core.

Parameters
[out]sDestination address of memory
[in]cValue to be written to memory
[in]nNumber of bytes to be wirtten
Return values
Destinationaddress of memory

Definition at line 59 of file tfm_core_utils.c.

Here is the caller graph for this function: