Module Name: src Committed By: riastradh Date: Sat Apr 9 12:07:01 UTC 2022
Modified Files: src/common/lib/libc/arch/i386/atomic: atomic.S src/common/lib/libc/arch/x86_64/atomic: atomic.S src/sys/arch/amd64/include: frameasm.h src/sys/arch/i386/include: frameasm.h src/sys/arch/x86/x86: patch.c Log Message: x86: Every load is a load-acquire, so membar_consumer is a noop. lfence is only needed for MD logic, such as operations on I/O memory rather than normal cacheable memory, or special instructions like RDTSC -- never for MI synchronization between threads/CPUs. No need for hot-patching to do lfence here. (The x86_lfence function might reasonably be patched on i386 to do lfence for MD logic, but it isn't now and this doesn't change that.) To generate a diff of this commit: cvs rdiff -u -r1.30 -r1.31 src/common/lib/libc/arch/i386/atomic/atomic.S cvs rdiff -u -r1.23 -r1.24 src/common/lib/libc/arch/x86_64/atomic/atomic.S cvs rdiff -u -r1.53 -r1.54 src/sys/arch/amd64/include/frameasm.h cvs rdiff -u -r1.33 -r1.34 src/sys/arch/i386/include/frameasm.h cvs rdiff -u -r1.49 -r1.50 src/sys/arch/x86/x86/patch.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.