s390/entry: remove broken and not needed code
LLVM's integrated assembler reports the following error when compiling entry.S: <instantiation>:38:5: error: unknown token in expression tm %r8,0x0001 # coming from user space? The correct instruction would have been tmhh instead of tm. The current code is doing nothing, since (with gas) it get's translated to a tm instruction which reads from real address 8, which again contains always zero, and therefore the conditional code is never executed. Note that due to the missing displacement gas translates "%r8" into "8(%r0)". Also code inspection reveals that this conditional code is not needed. Therefore remove it. Reviewed-by: Sven Schnelle <svens@linux.ibm.com> Reviewed-by: Alexander Gordeev <agordeev@linux.ibm.com> Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
This commit is contained in:
parent
f84d88ed3b
commit
29b06ad7e8
@ -473,10 +473,7 @@ ENTRY(\name)
|
|||||||
mvc __PT_R8(64,%r11),__LC_SAVE_AREA_ASYNC
|
mvc __PT_R8(64,%r11),__LC_SAVE_AREA_ASYNC
|
||||||
MBEAR %r11
|
MBEAR %r11
|
||||||
stmg %r8,%r9,__PT_PSW(%r11)
|
stmg %r8,%r9,__PT_PSW(%r11)
|
||||||
tm %r8,0x0001 # coming from user space?
|
lgr %r2,%r11 # pass pointer to pt_regs
|
||||||
jno 1f
|
|
||||||
lctlg %c1,%c1,__LC_KERNEL_ASCE
|
|
||||||
1: lgr %r2,%r11 # pass pointer to pt_regs
|
|
||||||
brasl %r14,\handler
|
brasl %r14,\handler
|
||||||
mvc __LC_RETURN_PSW(16),__PT_PSW(%r11)
|
mvc __LC_RETURN_PSW(16),__PT_PSW(%r11)
|
||||||
tmhh %r8,0x0001 # returning to user ?
|
tmhh %r8,0x0001 # returning to user ?
|
||||||
|
Loading…
Reference in New Issue
Block a user