mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-05-17 16:22:35 +08:00
Fix warings in <sys/seq.h>
This commit is contained in:
parent
11750f1f83
commit
b86b09782a
@ -89,7 +89,7 @@ static __inline void
|
||||
seq_write_end(seq_t *seqp)
|
||||
{
|
||||
|
||||
atomic_store_rel_int(seqp, *seqp + 1);
|
||||
atomic_store_rel_32(seqp, *seqp + 1);
|
||||
MPASS(!seq_in_modify(*seqp));
|
||||
}
|
||||
|
||||
@ -99,7 +99,7 @@ seq_read(const seq_t *seqp)
|
||||
seq_t ret;
|
||||
|
||||
for (;;) {
|
||||
ret = atomic_load_acq_int(__DECONST(seq_t *, seqp));
|
||||
ret = atomic_load_acq_32(__DECONST(seq_t *, seqp));
|
||||
if (seq_in_modify(ret)) {
|
||||
cpu_spinwait();
|
||||
continue;
|
||||
|
Loading…
x
Reference in New Issue
Block a user