Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src/common/lib/libc/arch/m68k/atomic



Module Name:    src
Committed By:   thorpej
Date:           Sat Nov 21 14:53:03 UTC 2026

Modified Files:
        src/common/lib/libc/arch/m68k/atomic: Makefile.inc
Added Files:
        src/common/lib/libc/arch/m68k/atomic: membar_ops.S

Log Message:
The 68010, 68020, and 68030 are have strictly ordered memory operations.
The 68040 and 68060 do not, however -- stores can be observed after
subsequent loads.

This is to say: all loads are load-acquire, all stores are store-release,
but store-before-load must be explicitly serialized.  The 68040 User's
Manual states that a NOP insn forces this serialization.

And so: membar_aquire -> do nothing, membar_release -> do nothing,
membar_sync -> do nothing *with feeling*

Chapter and verse of the manual quoted in comments.


To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 src/common/lib/libc/arch/m68k/atomic/Makefile.inc
cvs rdiff -u -r0 -r1.1 src/common/lib/libc/arch/m68k/atomic/membar_ops.S

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index