diff options
author | Heiko Carstens <heiko.carstens@de.ibm.com> | 2007-06-19 07:10:06 -0400 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2007-06-19 07:10:20 -0400 |
commit | dc74d7f996b465d8a95033c753d34c8b4c01c9d7 (patch) | |
tree | bfee4bf2cde7dfe3a6f698058d99893cbdf94337 /include/asm-s390/ptrace.h | |
parent | bca0fb8683b7406d3056dc53a14b0a482c367e2b (diff) |
[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: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'include/asm-s390/ptrace.h')
-rw-r--r-- | include/asm-s390/ptrace.h | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/include/asm-s390/ptrace.h b/include/asm-s390/ptrace.h index fa6ca87080e8..332ee73688fc 100644 --- a/include/asm-s390/ptrace.h +++ b/include/asm-s390/ptrace.h | |||
@@ -470,14 +470,7 @@ struct user_regs_struct | |||
470 | #define regs_return_value(regs)((regs)->gprs[2]) | 470 | #define regs_return_value(regs)((regs)->gprs[2]) |
471 | #define profile_pc(regs) instruction_pointer(regs) | 471 | #define profile_pc(regs) instruction_pointer(regs) |
472 | extern void show_regs(struct pt_regs * regs); | 472 | extern void show_regs(struct pt_regs * regs); |
473 | #endif | 473 | #endif /* __KERNEL__ */ |
474 | |||
475 | static inline void | ||
476 | psw_set_key(unsigned int key) | ||
477 | { | ||
478 | asm volatile("spka 0(%0)" : : "d" (key)); | ||
479 | } | ||
480 | |||
481 | #endif /* __ASSEMBLY__ */ | 474 | #endif /* __ASSEMBLY__ */ |
482 | 475 | ||
483 | #endif /* _S390_PTRACE_H */ | 476 | #endif /* _S390_PTRACE_H */ |