Skip to content

Commit

Permalink
core: arm64: add dsb_osh()
Browse files Browse the repository at this point in the history
Implement the use of osh data barrier to ensure that all data
access and modifications have been completed before executing
subsequent instructions.

Signed-off-by: Xiaoxu Zeng <zengxiaoxu@huawei.com>
Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org>
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
  • Loading branch information
xiaoxuZeng authored and jforissier committed Jul 17, 2023
1 parent 893a762 commit 3579408
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions core/arch/arm/include/arm64.h
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,11 @@ static inline __noprof void dsb_ishst(void)
asm volatile ("dsb ishst" : : : "memory");
}

static inline __noprof void dsb_osh(void)
{
asm volatile ("dsb osh" : : : "memory");
}

static inline __noprof void sev(void)
{
asm volatile ("sev" : : : "memory");
Expand Down

0 comments on commit 3579408

Please sign in to comment.