summaryrefslogtreecommitdiffstats
path: root/include/asm-s390/processor.h
diff options
context:
space:
mode:
authorHeiko Carstens <heiko.carstens@de.ibm.com>2007-06-19 13:10:06 +0200
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2007-06-19 13:10:20 +0200
commitdc74d7f996b465d8a95033c753d34c8b4c01c9d7 (patch)
treebfee4bf2cde7dfe3a6f698058d99893cbdf94337 /include/asm-s390/processor.h
parentbca0fb8683b7406d3056dc53a14b0a482c367e2b (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/processor.h')
-rw-r--r--include/asm-s390/processor.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/asm-s390/processor.h b/include/asm-s390/processor.h
index e0fcea8c64c..5cb480af65d 100644
--- a/include/asm-s390/processor.h
+++ b/include/asm-s390/processor.h
@@ -216,6 +216,11 @@ static inline void cpu_relax(void)
barrier();
}
+static inline void psw_set_key(unsigned int key)
+{
+ asm volatile("spka 0(%0)" : : "d" (key));
+}
+
/*
* Set PSW to specified value.
*/