Ignore:
Timestamp:
Sep 14, 2018, 12:04:09 PM (2 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
b96abfd647154f10ea8f7fac68e25676636eded5, debc0aed8b9bef9996b8ec0ae7a70b0b41912e27, 68e79b6d187fe09b0a6f3f1d22c69b4121a3f76e, 33bfaee89aa71d2252eb48d6b9a9ec17183faced
Children:
be6515d
Parents:
3489e3b
git-author:
Sebastian Huber <sebastian.huber@…> (09/14/18 12:04:09)
git-committer:
Sebastian Huber <sebastian.huber@…> (09/21/18 08:29:42)
Message:

ck: No hardware barriers in uniprocessor configs

Update #3472.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • freebsd/sys/contrib/ck/include/gcc/arm/ck_pr.h

    r3489e3b r1af372a  
    5555}
    5656
    57 #if defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__)
     57#if __ARM_ARCH >= 7 || defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__)
     58#ifdef RTEMS_SMP
    5859#define CK_ISB __asm __volatile("isb" : : "r" (0) : "memory")
    5960#define CK_DMB __asm __volatile("dmb" : : "r" (0) : "memory")
     
    6566#define CK_DMB_ST __asm __volatile("dmb st" : : "r" (0) : "memory")
    6667#endif /* __FreeBSD__ */
     68#else /* !RTEMS_SMP */
     69#define CK_ISB __asm __volatile("" : : "r" (0) : "memory")
     70#define CK_DMB __asm __volatile("" : : "r" (0) : "memory")
     71#define CK_DSB __asm __volatile("" : : "r" (0) : "memory")
     72#define CK_DMB_ST __asm __volatile("" : : "r" (0) : "memory")
     73#endif /* RTEMS_SMP */
    6774#else
    6875/* armv6 doesn't have dsb/dmb/isb, and no way to wait only for stores */
Note: See TracChangeset for help on using the changeset viewer.