freebsd-dev/sys/amd64
Konstantin Belousov 9c0b759bf9 x86 atomics: use lock prefix unconditionally
Atomics have significant other use besides providing in-system
primitives for safe memory updates.  They are used for implementing
communication with out of system software or hardware following some
protocols.

For instance, even UP kernel might require a protocol using atomics to
communicate with the software-emulated device on SMP hypervisor.  Or
real hardware might need atomic accesses as part of the proper
management protocol.

Another point is that UP configurations on x86 are extinct, so slight
performance hit by unconditionally use proper atomics is not important.
It is compensated by less code clutter, which in fact improves the
UP/i386 lifetime expectations.

Requested by:	Elliott Mitchell <ehem+freebsd@m5p.com>
Reviewed by:	Elliott Mitchell, imp, jhb, markj, royger
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D34153
2022-02-04 14:01:39 +02:00
..
acpica amd64 wakeup: rework trampoline page allocation 2021-09-14 00:23:15 +03:00
amd64 amd64: micro-optimize vptopte()/vtopde() further 2022-02-02 11:40:04 +02:00
conf lio: remove from NOIP 2022-01-05 14:19:34 -07:00
ia32 exec: Introduce the PROC_PS_STRINGS() macro 2022-01-17 16:11:54 -05:00
include x86 atomics: use lock prefix unconditionally 2022-02-04 14:01:39 +02:00
linux exec: Introduce the PROC_PS_STRINGS() macro 2022-01-17 16:11:54 -05:00
linux32 sysent: Add a sv_psstringssz field to struct sysentvec 2022-01-17 11:42:07 -05:00
pci pci_cfgreg.c: Use io port config access for early boot time. 2019-04-09 18:07:17 +00:00
sgx Convert remaining cap_rights_init users to cap_rights_init_one 2021-01-12 13:16:10 +00:00
vmm bhyve: add support for MTRR 2022-01-14 12:41:44 +01:00
Makefile Bring the tags and links entries for amd64 up to date. 2021-09-27 20:04:51 -07:00