lx_emul: add additional atomic64 functions

Needed by the WLAN driver on x86_32.

Issue #4455.
This commit is contained in:
Josef Söntgen 2022-03-18 17:00:29 +01:00 committed by Christian Helmuth
parent 0c617366e5
commit 77cdceabaa

View File

@ -30,3 +30,15 @@ s64 arch_atomic64_fetch_add(s64 i, atomic64_t *v)
v->counter += i; v->counter += i;
return v->counter; return v->counter;
} }
s64 arch_atomic64_dec_return(atomic64_t *v)
{
return arch_atomic64_sub(1, v);
}
s64 arch_atomic64_inc_return(atomic64_t *v)
{
return arch_atomic64_add(1, v);
}