powerpc: store and restore the pkey state across context switches
Store and restore the AMR, IAMR and UAMOR register state of the task before scheduling out and after scheduling in, respectively. Signed-off-by: Ram Pai <linuxram@us.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
This commit is contained in:
committed by
Michael Ellerman
parent
dcf872956d
commit
06bb53b338
@@ -139,4 +139,8 @@ static inline int arch_set_user_pkey_access(struct task_struct *tsk, int pkey,
|
||||
}
|
||||
|
||||
extern void pkey_mm_init(struct mm_struct *mm);
|
||||
extern void thread_pkey_regs_save(struct thread_struct *thread);
|
||||
extern void thread_pkey_regs_restore(struct thread_struct *new_thread,
|
||||
struct thread_struct *old_thread);
|
||||
extern void thread_pkey_regs_init(struct thread_struct *thread);
|
||||
#endif /*_ASM_POWERPC_KEYS_H */
|
||||
|
||||
Reference in New Issue
Block a user