]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Make atomic_load_ptr type-aware
authormjg <mjg@FreeBSD.org>
Fri, 14 Feb 2020 23:15:41 +0000 (23:15 +0000)
committermjg <mjg@FreeBSD.org>
Fri, 14 Feb 2020 23:15:41 +0000 (23:15 +0000)
commit92ab0e70028a167f8f7276f0e502edb75c1e5e81
tree20de7ae1d68d9825dcd2cc5f7c89d3655bed9d88
parent6688f33b180b4211fa73e19cf4709ffcd24c0fc0
Make atomic_load_ptr type-aware

Returned value has type based on the argument, meaning consumers no longer
have to cast in the commmon case.

This commit keeps the kernel compilable without patching the rest.
sys/amd64/amd64/pmap.c
sys/sys/_cscan_atomic.h
sys/sys/atomic_common.h
sys/x86/x86/mp_x86.c