WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
载入中...
搜索中...
未找到
osal_barrier

函数

void osal_mb (void)
 General basic CPU memory barriers
 
void osal_rmb (void)
 Read basic CPU memory barriers
 
void osal_wmb (void)
 Write basic CPU memory barriers
 
void osal_smp_mb (void)
 General basic CPU memory barriers, SMP conditional.
 
void osal_smp_rmb (void)
 Read basic CPU memory barriers, SMP conditional.
 
void osal_smp_wmb (void)
 Write basic CPU memory barriers, SMP conditional.
 
void osal_isb (void)
 Instruction Synchronization Barrier.
 
void osal_dsb (void)
 Data Synchronization Barrier.
 
void osal_dmb (void)
 Data Memory Barrier.
 

详细描述

函数说明

◆ osal_dmb()

void osal_dmb ( void  )

Data Memory Barrier.

Description:
Data Memory Barrier acts as a memory barrier. It ensures that all explicit memory accesses that appear in program order before the DMB instruction are observed before any explicit memory accesses that appear in program order after the DMB instruction. It does not affect the ordering of any other instructions executing on the processor.
Support System:
linux liteos.

◆ osal_dsb()

void osal_dsb ( void  )

Data Synchronization Barrier.

Description:
Data Synchronization Barrier acts as a special kind of memory barrier. No instruction in program order after this instruction executes until this instruction completes. This instruction completes when: · All explicit memory accesses before this instruction complete. · All Cache, Branch predictor and TLB maintenance operations before this instruction complete.
Support System:
linux liteos.

◆ osal_isb()

void osal_isb ( void  )

Instruction Synchronization Barrier.

Description:
Instruction Synchronization Barrier flushes the pipeline in the processor, so that all instructions following the ISB are fetched from cache or memory, after the instruction has been completed. It ensures that the effects of context altering operations, such as changing the ASID, or completed TLB maintenance operations, or branch predictor maintenance operations, as well as all changes to the CP15 registers, executed before the ISB instruction are visible to the instructions fetched after the ISB. In addition, the ISB instruction ensures that any branches that appear in program order after it are always written into the branch prediction logic with the context that is visible after the ISB instruction. This is required to ensure correct execution of the instruction stream.
Support System:
linux liteos.

◆ osal_mb()

void osal_mb ( void  )

General basic CPU memory barriers

Description:
The memory barrier mb() function ensures that any memory access that appears before the barrier is completed before the execution of any memory access that appears after the barrier.
Support System:
linux.

◆ osal_rmb()

void osal_rmb ( void  )

Read basic CPU memory barriers

Description:
The read memory barrier rmb() function ensures that any read that appears before the barrier is completed before the execution of any read that appears after the barrier.
Support System:
linux.

◆ osal_smp_mb()

void osal_smp_mb ( void  )

General basic CPU memory barriers, SMP conditional.

Description:
Corresponding SMP versions of osal_mb.
Support System:
linux.

◆ osal_smp_rmb()

void osal_smp_rmb ( void  )

Read basic CPU memory barriers, SMP conditional.

Description:
Corresponding SMP versions of osal_rmb.
Support System:
linux.

◆ osal_smp_wmb()

void osal_smp_wmb ( void  )

Write basic CPU memory barriers, SMP conditional.

Description:
Corresponding SMP versions of osal_wmb.
Support System:
linux.

◆ osal_wmb()

void osal_wmb ( void  )

Write basic CPU memory barriers

Description:
The write memory barrier wmb() function ensures that any write that appears before the barrier is completed before the execution of any write that appears after the barrier.
Support System:
linux.