News for hackers. Stuff that matters.
Re:Memory-mapped IO registers in Zig. (2021) by matt-noonan on Tuesday April 23, 2024 @09:33AM (#40131788)
There are some interesting solutions out there, such as bit-banding used in some ARM Cortex CPUs. This maps entire bytes in the high part of the address space to single bits in the low part of the address space, so that you can make an atomic set or clear of a single physical bit by writing to a byte of memory. https://spin.atomicobject.com/bit-banding/

There are no comments on this comment yet.