blob: 82e06ca3a49b86d1c2a69607bffa83d3459ba74a [file] [log] [blame]
Michael Neuling98ae22e2013-02-13 16:21:35 +00001/*
2 * Transactional memory support routines to reclaim and recheckpoint
3 * transactional process state.
4 *
5 * Copyright 2012 Matt Evans & Michael Neuling, IBM Corporation.
6 */
7
Michael Neulingb75c1002013-05-26 18:30:56 +00008#include <uapi/asm/tm.h>
9
Michael Neulinge4e38122014-03-25 10:47:02 +110010#ifndef __ASSEMBLY__
11
Michael Neuling98ae22e2013-02-13 16:21:35 +000012extern void tm_enable(void);
13extern void tm_reclaim(struct thread_struct *thread,
14 unsigned long orig_msr, uint8_t cause);
Paul Mackerrasd31626f2014-01-13 15:56:29 +110015extern void tm_reclaim_current(uint8_t cause);
Michael Neuling98ae22e2013-02-13 16:21:35 +000016extern void tm_recheckpoint(struct thread_struct *thread,
17 unsigned long orig_msr);
18extern void tm_abort(uint8_t cause);
19extern void tm_save_sprs(struct thread_struct *thread);
20extern void tm_restore_sprs(struct thread_struct *thread);
Michael Neulinge4e38122014-03-25 10:47:02 +110021
22#endif /* __ASSEMBLY__ */