A method, system, and computer instructions for atomically updating 64-bit
fields in the 32-bit AIX kernel, wherein the underlying hardware's 64-bit
capable instructions are used to construct an atomic primitive. If a data
request applies to the 32-bit kernel on 64-bit hardware execution
environment, a load and reserve instruction sets a reservation for a
memory location. The original 64-bit data object is decomposed into two
32-bit halves. A Shift Right Double Word Immediate (SRDI) instruction
captures the high-order bits of the 64-bit register. If the store
conditional instruction determines that the reservation is not lost, the
store conditional instruction stores the result. If the store conditional
instruction fails, the process returns to the reserve instruction until
the store conditional operation returns a success.