[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>
This commit is contained in:
parent
2dee702fcb
commit
c563077e52
|
@ -214,8 +214,8 @@ sysc_nr_ok:
|
||||||
sysc_do_restart:
|
sysc_do_restart:
|
||||||
larl %r10,sys_call_table
|
larl %r10,sys_call_table
|
||||||
#ifdef CONFIG_S390_SUPPORT
|
#ifdef CONFIG_S390_SUPPORT
|
||||||
tm SP_PSW+3(%r15),0x01 # are we running in 31 bit mode ?
|
tm __TI_flags+5(%r9),(_TIF_31BIT>>16) # running in 31 bit mode ?
|
||||||
jo sysc_noemu
|
jno sysc_noemu
|
||||||
larl %r10,sys_call_table_emu # use 31 bit emulation system calls
|
larl %r10,sys_call_table_emu # use 31 bit emulation system calls
|
||||||
sysc_noemu:
|
sysc_noemu:
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue