tm.h 732 B

1234567891011121314151617181920
  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. #ifdef CONFIG_PPC_TRANSACTIONAL_MEM
  8. extern void do_load_up_transact_fpu(struct thread_struct *thread);
  9. extern void do_load_up_transact_altivec(struct thread_struct *thread);
  10. #endif
  11. extern void tm_enable(void);
  12. extern void tm_reclaim(struct thread_struct *thread,
  13. unsigned long orig_msr, uint8_t cause);
  14. extern void tm_recheckpoint(struct thread_struct *thread,
  15. unsigned long orig_msr);
  16. extern void tm_abort(uint8_t cause);
  17. extern void tm_save_sprs(struct thread_struct *thread);
  18. extern void tm_restore_sprs(struct thread_struct *thread);