HomeFreeBSD

[PowerPC] [MIPS] Implement 32-bit kernel emulation of atomic64 operations

Description

[PowerPC] [MIPS] Implement 32-bit kernel emulation of atomic64 operations

This is a lock-based emulation of 64-bit atomics for kernel use, split off
from an earlier patch by jhibbits.

This is needed to unblock future improvements that reduce the need for
locking on 64-bit platforms by using atomic updates.

The implementation allows for future integration with userland atomic64,
but as that implies going through sysarch for every use, the current
status quo of userland doing its own locking may be for the best.

Submitted by: jhibbits (original patch), kevans (mips bits)
Reviewed by: jhibbits, jeff, kevans
Differential Revision: https://reviews.freebsd.org/D22976

(cherry picked from commit 9aafc7c0523456c8b5ee8919c97f75277cf4d70b)

Details

Provenance
bdragonAuthored on Jan 2 2020, 11:20 PM
kpCommitted on Oct 6 2021, 6:29 PM
Reviewer
jhibbits
Differential Revision
D22976: [PowerPC] Kernel 64-bit atomics emulation for PPC32
Parents
rG6fea4b82e7b8: Fix busdma resource leak on usb device detach.
Branches
Unknown
Tags
Unknown