Michael Neuling | 98ae22e | 2013-02-13 16:21:35 +0000 | [diff] [blame] | 1 | /* |
| 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 Neuling | b75c100 | 2013-05-26 18:30:56 +0000 | [diff] [blame] | 8 | #include <uapi/asm/tm.h> |
| 9 | |
Michael Neuling | e4e3812 | 2014-03-25 10:47:02 +1100 | [diff] [blame] | 10 | #ifndef __ASSEMBLY__ |
| 11 | |
Michael Neuling | 98ae22e | 2013-02-13 16:21:35 +0000 | [diff] [blame] | 12 | extern void tm_enable(void); |
| 13 | extern void tm_reclaim(struct thread_struct *thread, |
| 14 | unsigned long orig_msr, uint8_t cause); |
Paul Mackerras | d31626f | 2014-01-13 15:56:29 +1100 | [diff] [blame] | 15 | extern void tm_reclaim_current(uint8_t cause); |
Michael Neuling | 98ae22e | 2013-02-13 16:21:35 +0000 | [diff] [blame] | 16 | extern void tm_recheckpoint(struct thread_struct *thread, |
| 17 | unsigned long orig_msr); |
| 18 | extern void tm_abort(uint8_t cause); |
| 19 | extern void tm_save_sprs(struct thread_struct *thread); |
| 20 | extern void tm_restore_sprs(struct thread_struct *thread); |
Michael Neuling | e4e3812 | 2014-03-25 10:47:02 +1100 | [diff] [blame] | 21 | |
| 22 | #endif /* __ASSEMBLY__ */ |