Commit dc74d7f9 authored by Heiko Carstens's avatar Heiko Carstens Committed by Martin Schwidefsky

[S390] Move psw_set_key.

Move psw_set_key() from ptrace.h to processor.h which is a more
suitable place for it. In addition the moves makes the function
invisible to user space.
Signed-off-by: default avatarHeiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: default avatarMartin Schwidefsky <schwidefsky@de.ibm.com>
parent bca0fb86
...@@ -216,6 +216,11 @@ static inline void cpu_relax(void) ...@@ -216,6 +216,11 @@ static inline void cpu_relax(void)
barrier(); barrier();
} }
static inline void psw_set_key(unsigned int key)
{
asm volatile("spka 0(%0)" : : "d" (key));
}
/* /*
* Set PSW to specified value. * Set PSW to specified value.
*/ */
......
...@@ -470,14 +470,7 @@ struct user_regs_struct ...@@ -470,14 +470,7 @@ struct user_regs_struct
#define regs_return_value(regs)((regs)->gprs[2]) #define regs_return_value(regs)((regs)->gprs[2])
#define profile_pc(regs) instruction_pointer(regs) #define profile_pc(regs) instruction_pointer(regs)
extern void show_regs(struct pt_regs * regs); extern void show_regs(struct pt_regs * regs);
#endif #endif /* __KERNEL__ */
static inline void
psw_set_key(unsigned int key)
{
asm volatile("spka 0(%0)" : : "d" (key));
}
#endif /* __ASSEMBLY__ */ #endif /* __ASSEMBLY__ */
#endif /* _S390_PTRACE_H */ #endif /* _S390_PTRACE_H */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment