Skip to content

Commit 2b0a576

Browse files
mikeyozbenh
authored andcommitted
powerpc: Add new transactional memory state to the signal context
This adds the new transactional memory archtected state to the signal context in both 32 and 64 bit. Signed-off-by: Matt Evans <[email protected]> Signed-off-by: Michael Neuling <[email protected]> Signed-off-by: Benjamin Herrenschmidt <[email protected]>
1 parent bc2a940 commit 2b0a576

File tree

4 files changed

+830
-16
lines changed

4 files changed

+830
-16
lines changed

arch/powerpc/include/asm/reg.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@
120120
#define TM_CAUSE_FAC_UNAV 0xfa
121121
#define TM_CAUSE_SYSCALL 0xf9 /* Persistent */
122122
#define TM_CAUSE_MISC 0xf6
123+
#define TM_CAUSE_SIGNAL 0xf4
123124

124125
#if defined(CONFIG_PPC_BOOK3S_64)
125126
#define MSR_64BIT MSR_SF

arch/powerpc/kernel/signal.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,21 @@ extern int handle_rt_signal32(unsigned long sig, struct k_sigaction *ka,
2525

2626
extern unsigned long copy_fpr_to_user(void __user *to,
2727
struct task_struct *task);
28+
extern unsigned long copy_transact_fpr_to_user(void __user *to,
29+
struct task_struct *task);
2830
extern unsigned long copy_fpr_from_user(struct task_struct *task,
2931
void __user *from);
32+
extern unsigned long copy_transact_fpr_from_user(struct task_struct *task,
33+
void __user *from);
3034
#ifdef CONFIG_VSX
3135
extern unsigned long copy_vsx_to_user(void __user *to,
3236
struct task_struct *task);
37+
extern unsigned long copy_transact_vsx_to_user(void __user *to,
38+
struct task_struct *task);
3339
extern unsigned long copy_vsx_from_user(struct task_struct *task,
3440
void __user *from);
41+
extern unsigned long copy_transact_vsx_from_user(struct task_struct *task,
42+
void __user *from);
3543
#endif
3644

3745
#ifdef CONFIG_PPC64

0 commit comments

Comments
 (0)