Zephyr API Documentation 4.1.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
main.c File Reference

Macros

#define ATOMIC_WORD(val_if_64, val_if_32)
 Verify RISC-V specific atomic functionalities.
 

Functions

void test_atomic (void)
 
 ZTEST_SUITE (riscv_atomic, NULL, NULL, NULL, NULL, NULL)
 

Macro Definition Documentation

◆ ATOMIC_WORD

#define ATOMIC_WORD ( val_if_64,
val_if_32 )
Value:
((atomic_t)((sizeof(void *) == sizeof(uint64_t)) ? (val_if_64) : (val_if_32)))
long atomic_t
Definition atomic_types.h:15
__UINT64_TYPE__ uint64_t
Definition stdint.h:91

Verify RISC-V specific atomic functionalities.

Test Objective:

  • Test if the RISC-V atomic instructions API is correct.

Test Procedure:

Expected Test Result:

  • The function return value and target operands are correct.

Pass/Fail Criteria:

  • Successful if all check points in the test procedure have passed, failure otherwise.

Function Documentation

◆ test_atomic()

void test_atomic ( void )

◆ ZTEST_SUITE()

ZTEST_SUITE ( riscv_atomic ,
NULL ,
NULL ,
NULL ,
NULL ,
NULL  )