summaryrefslogtreecommitdiff
path: root/arch/powerpc/include/asm/shmparam.h
diff options
context:
space:
mode:
authorMichael Neuling <mikey@neuling.org>2013-02-13 16:21:30 (GMT)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2013-02-15 05:58:49 (GMT)
commit14c39a4cf6bc4c3ef8ec40caa366047a87b0e031 (patch)
treeed0b8af7c9a15f78ef1146f8eb9c0dacbce5096d /arch/powerpc/include/asm/shmparam.h
parent6a6d541f33111385ec2746caa39377ffcd30f095 (diff)
downloadlinux-fsl-qoriq-14c39a4cf6bc4c3ef8ec40caa366047a87b0e031.tar.xz
powerpc: Add new instructions for transactional memory
Here we define the new instructions we need for transactional memory in the kernel. This is so we can support compiling with binutils that don't support the new transactional memory instructions. Transactional memory results in two sets of architected state (GPRs/VSRs etc). treclaim allows us to read the checkpointed state (from the tbegin) so that we can store it away on a context switch. It does this by overwriting the exiting architected state, so you have to save that away before you treclaim. treclaim will also abort a transaction, so you can give a register value which contains an abort reason. trecheckpoint allows us to inject into the checkpointed state as if it were at the tbegin. It does this by copying the current architected state into the checkpointed state. Signed-off-by: Matt Evans <matt@ozlabs.org> Signed-off-by: Michael Neuling <mikey@neuling.org> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/include/asm/shmparam.h')
0 files changed, 0 insertions, 0 deletions