From: Heiko Carstens Date: Sat, 3 Sep 2005 22:58:04 +0000 (-0700) Subject: [PATCH] s390: compat system calls X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c563077e526d130b8c9aab4e75116551eb5fdc2d;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git [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 Signed-off-by: Martin Schwidefsky Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/arch/s390/kernel/entry64.S b/arch/s390/kernel/entry64.S index 5db5976ff59..fb77b72ab26 100644 --- a/arch/s390/kernel/entry64.S +++ b/arch/s390/kernel/entry64.S @@ -214,8 +214,8 @@ sysc_nr_ok: sysc_do_restart: larl %r10,sys_call_table #ifdef CONFIG_S390_SUPPORT - tm SP_PSW+3(%r15),0x01 # are we running in 31 bit mode ? - jo sysc_noemu + tm __TI_flags+5(%r9),(_TIF_31BIT>>16) # running in 31 bit mode ? + jno sysc_noemu larl %r10,sys_call_table_emu # use 31 bit emulation system calls sysc_noemu: #endif