diff options
author | Heiko Carstens <heiko.carstens@de.ibm.com> | 2005-09-03 18:58:04 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@evo.osdl.org> | 2005-09-05 03:06:29 -0400 |
commit | c563077e526d130b8c9aab4e75116551eb5fdc2d (patch) | |
tree | d4296f485f97a1d56db6eda5c7ad7b28a14be454 /arch/s390/kernel | |
parent | 2dee702fcb197d80c1a94650fb611539dd8135ce (diff) |
[PATCH] s390: compat system calls
Use TIF bit to tell if a process is running in 31 bit mode instead of checking
the addressing mode bits of the PSW.
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/s390/kernel')
-rw-r--r-- | arch/s390/kernel/entry64.S | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/s390/kernel/entry64.S b/arch/s390/kernel/entry64.S index 5db5976ff594..fb77b72ab262 100644 --- a/arch/s390/kernel/entry64.S +++ b/arch/s390/kernel/entry64.S | |||
@@ -214,8 +214,8 @@ sysc_nr_ok: | |||
214 | sysc_do_restart: | 214 | sysc_do_restart: |
215 | larl %r10,sys_call_table | 215 | larl %r10,sys_call_table |
216 | #ifdef CONFIG_S390_SUPPORT | 216 | #ifdef CONFIG_S390_SUPPORT |
217 | tm SP_PSW+3(%r15),0x01 # are we running in 31 bit mode ? | 217 | tm __TI_flags+5(%r9),(_TIF_31BIT>>16) # running in 31 bit mode ? |
218 | jo sysc_noemu | 218 | jno sysc_noemu |
219 | larl %r10,sys_call_table_emu # use 31 bit emulation system calls | 219 | larl %r10,sys_call_table_emu # use 31 bit emulation system calls |
220 | sysc_noemu: | 220 | sysc_noemu: |
221 | #endif | 221 | #endif |