mirror of
https://github.com/genodelabs/genode.git
synced 2025-01-30 16:14:13 +00:00
lx_emul: add additional atomic64 functions
Needed by the WLAN driver on x86_32. Issue #4455.
This commit is contained in:
parent
0c617366e5
commit
77cdceabaa
@ -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);
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user