my-server
← Wiki

Advanced Synchronization Facility

Advanced Synchronization Facility (ASF) is a proposed extension to the x86-64 instruction set architecture that adds hardware transactional memory support. It was introduced by AMD; the latest specification was dated March 2009. , it was still in the proposal stage. No released microprocessors implement the extension.

Features

ASF provides the capability to start, end and abort transactional execution and to mark CPU cache lines for protected memory access in transactional code regions. It contains four new instructions—<code>SPECULATE</code>, <code>COMMIT</code>, <code>ABORT</code> and <code>RELEASE</code>—and turns the otherwise invalid <code>LOCK</code>-prefixed <code>MOVx</code>, <code>PREFETCH</code> and <code>PREFETCHW</code> instructions into valid ones inside transactional code regions. Up to 256 levels of nested transactional code regions is supported.

The <code>SPECULATE</code> and <code>COMMIT</code> instructions mark the start and end of a transactional code region. Inside transactional code regions, the <code>LOCK</code>-prefixed <code>MOVx reg/xmm, mem</code>, <code>PREFETCH</code> and <code>PREFETCHW</code> instructions can mark up to four cache lines for protected memory access. Accesses from other processor cores to the protected cache lines result in exceptions, which in turn cause transaction aborts. Stores to protected cache lines must be performed using the <code>LOCK MOVx mem, reg/imm/xmm</code> instructions. Marked cache lines can be released from protection with the <code>RELEASE</code> instruction. Transaction aborts generated by hardware or explicitly requested through the <code>ABORT</code> instruction rolls back modifications to the protected cache lines and restarts execution from the instruction following the top-level <code>SPECULATE</code> instruction.

See also

References