Skip to content

Commit

Permalink
s390/entry: shorten OUTSIDE macro
Browse files Browse the repository at this point in the history
Since the minimum architecture level has been raised to z10 a shorter
instruction sequence can be used to implement the OUTSIDE macro. This
also reduces the number of used registers within that macro to one.

Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
  • Loading branch information
hcahca authored and intel-lab-lkp committed May 11, 2022
1 parent 7fa6e29 commit ad8a0a6
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions arch/s390/kernel/entry.S
Expand Up @@ -169,11 +169,9 @@ _LPP_OFFSET = __LC_LPP
* @outside_label: jump here if @reg is outside of [@start..@end)
*/
.macro OUTSIDE reg,start,end,outside_label
lgr %r14,\reg
larl %r13,\start
slgr %r14,%r13
lghi %r13,\end - \start
clgr %r14,%r13
larl %r14,\start
slgrk %r14,\reg,%r14
clgfi %r14,\end - \start
jhe \outside_label
.endm

Expand Down

0 comments on commit ad8a0a6

Please sign in to comment.