mirror of
https://github.com/opnsense/src.git
synced 2026-06-03 22:02:58 -04:00
x86 atomic.h: cleanup comments for preprocessor directives
Reviewed by: Elliott Mitchell, imp, jhb, markj, royger Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D34153
This commit is contained in:
parent
664640ba6c
commit
cbf999e75d
2 changed files with 4 additions and 4 deletions
|
|
@ -140,7 +140,7 @@ u_##TYPE atomic_load_acq_##TYPE(volatile u_##TYPE *p)
|
|||
#define ATOMIC_STORE(TYPE) \
|
||||
void atomic_store_rel_##TYPE(volatile u_##TYPE *p, u_##TYPE v)
|
||||
|
||||
#else /* !KLD_MODULE && __GNUCLIKE_ASM */
|
||||
#else /* !__GNUCLIKE_ASM */
|
||||
|
||||
/*
|
||||
* For userland, always use lock prefixes so that the binaries will run
|
||||
|
|
@ -428,7 +428,7 @@ atomic_thread_fence_seq_cst(void)
|
|||
__storeload_barrier();
|
||||
}
|
||||
|
||||
#endif /* KLD_MODULE || !__GNUCLIKE_ASM */
|
||||
#endif /* !__GNUCLIKE_ASM */
|
||||
|
||||
ATOMIC_ASM(set, char, "orb %b1,%0", "iq", v);
|
||||
ATOMIC_ASM(clear, char, "andb %b1,%0", "iq", ~v);
|
||||
|
|
|
|||
|
|
@ -138,7 +138,7 @@ uint64_t atomic_fetchadd_64(volatile uint64_t *, uint64_t);
|
|||
void atomic_add_64(volatile uint64_t *, uint64_t);
|
||||
void atomic_subtract_64(volatile uint64_t *, uint64_t);
|
||||
|
||||
#else /* !KLD_MODULE && __GNUCLIKE_ASM */
|
||||
#else /* !__GNUCLIKE_ASM */
|
||||
|
||||
/*
|
||||
* For userland, always use lock prefixes so that the binaries will run
|
||||
|
|
@ -650,7 +650,7 @@ atomic_subtract_64(volatile uint64_t *p, uint64_t v)
|
|||
|
||||
#endif /* _KERNEL */
|
||||
|
||||
#endif /* KLD_MODULE || !__GNUCLIKE_ASM */
|
||||
#endif /* !__GNUCLIKE_ASM */
|
||||
|
||||
ATOMIC_ASM(set, char, "orb %b1,%0", "iq", v);
|
||||
ATOMIC_ASM(clear, char, "andb %b1,%0", "iq", ~v);
|
||||
|
|
|
|||
Loading…
Reference in a new issue