aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/subr_atomic64.c
Commit message (Collapse)AuthorAgeFilesLines
* spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSDWarner Losh2023-05-121-1/+1
| | | | | | | | | The SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catch up to that fact and revert to their recommended match of BSD-2-Clause. Discussed with: pfg MFC After: 3 days Sponsored by: Netflix
* sys/kern: Use C99 fixed-width integer types.John Baldwin2021-12-281-11/+11
| | | | | | | No functional change. Reviewed by: imp, kib Differential Revision: https://reviews.freebsd.org/D33630
* emulated atomic64: disable interrupts as the lock mechanism on !SMPKyle Evans2020-01-031-2/+12
| | | | | | | | Reviewed by: jhibbits, bdragon Differential Revision: https://reviews.freebsd.org/D23015 Notes: svn path=/head/; revision=356325
* [PowerPC] [MIPS] Implement 32-bit kernel emulation of atomic64 operationsBrandon Bergren2020-01-021-0/+140
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 Notes: svn path=/head/; revision=356308