HomeFreeBSD

Fix atomic_sub_64() i386 assembly implementation

Description

Fix atomic_sub_64() i386 assembly implementation

The atomic_sub_64() should use sbbl instead of adcl. In user
space these atomics are used for statistics tracking and aren't
critical which explain how this was overlooked. The kernel
space implementation of these atomics are layered on the
architecture specific implementations provided by the kernel.

Reviewed by: Stefan Ring <stefanrin@gmail.com>
Reviewed-by: Gvozden Neskovic <neskovic@gmail.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #5671
Closes #5717

Details

Provenance
Brian Behlendorf <behlendorf1@llnl.gov>Authored on Feb 1 2017, 5:36 PM
GitHub <noreply@github.com>Committed on Feb 1 2017, 5:36 PM
Parents
rG2fe36b0bfb80: Use fletcher_4 routines natively with `abd_iterate_func()`
Branches
Unknown
Tags
Unknown

Event Timeline

GitHub <noreply@github.com> committed rG3b6425cb5bfd: Fix atomic_sub_64() i386 assembly implementation (authored by Brian Behlendorf <behlendorf1@llnl.gov>).Feb 1 2017, 5:36 PM