Skip to content

Commit 86e08d6

Browse files
svens-s390Vasily Gorbik
authored andcommitted
s390/entry: Add base register to CHECK_VMAP_STACK/CHECK_STACK macro
In preparation of having lowcore at different address than zero, add the base register to CHECK_VMAP_STACK and CHECK_STACK. No functional change, because %r0 is passed to the macro. Signed-off-by: Sven Schnelle <svens@linux.ibm.com> Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
1 parent 6908f8f commit 86e08d6

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

arch/s390/kernel/entry.S

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -49,30 +49,30 @@ _LPP_OFFSET = __LC_LPP
4949
ALT_FACILITY(193)
5050
.endm
5151

52-
.macro CHECK_STACK savearea
52+
.macro CHECK_STACK savearea, lowcore
5353
#ifdef CONFIG_CHECK_STACK
5454
tml %r15,THREAD_SIZE - CONFIG_STACK_GUARD
55-
lghi %r14,\savearea
55+
la %r14,\savearea(\lowcore)
5656
jz stack_overflow
5757
#endif
5858
.endm
5959

60-
.macro CHECK_VMAP_STACK savearea,oklabel
60+
.macro CHECK_VMAP_STACK savearea, lowcore, oklabel
6161
#ifdef CONFIG_VMAP_STACK
6262
lgr %r14,%r15
6363
nill %r14,0x10000 - THREAD_SIZE
6464
oill %r14,STACK_INIT_OFFSET
65-
clg %r14,__LC_KERNEL_STACK
65+
clg %r14,__LC_KERNEL_STACK(\lowcore)
6666
je \oklabel
67-
clg %r14,__LC_ASYNC_STACK
67+
clg %r14,__LC_ASYNC_STACK(\lowcore)
6868
je \oklabel
69-
clg %r14,__LC_MCCK_STACK
69+
clg %r14,__LC_MCCK_STACK(\lowcore)
7070
je \oklabel
71-
clg %r14,__LC_NODAT_STACK
71+
clg %r14,__LC_NODAT_STACK(\lowcore)
7272
je \oklabel
73-
clg %r14,__LC_RESTART_STACK
73+
clg %r14,__LC_RESTART_STACK(\lowcore)
7474
je \oklabel
75-
lghi %r14,\savearea
75+
la %r14,\savearea(\lowcore)
7676
j stack_overflow
7777
#else
7878
j \oklabel
@@ -331,10 +331,10 @@ SYM_CODE_START(pgm_check_handler)
331331
jnz 2f # -> enabled, can't be a double fault
332332
tm __LC_PGM_ILC+3,0x80 # check for per exception
333333
jnz .Lpgm_svcper # -> single stepped svc
334-
2: CHECK_STACK __LC_SAVE_AREA_SYNC
334+
2: CHECK_STACK __LC_SAVE_AREA_SYNC,%r0
335335
aghi %r15,-(STACK_FRAME_OVERHEAD + __PT_SIZE)
336336
# CHECK_VMAP_STACK branches to stack_overflow or 4f
337-
CHECK_VMAP_STACK __LC_SAVE_AREA_SYNC,4f
337+
CHECK_VMAP_STACK __LC_SAVE_AREA_SYNC,%r0,4f
338338
3: lg %r15,__LC_KERNEL_STACK
339339
4: la %r11,STACK_FRAME_OVERHEAD(%r15)
340340
xc __PT_FLAGS(8,%r11),__PT_FLAGS(%r11)
@@ -406,7 +406,7 @@ SYM_CODE_START(\name)
406406
BPENTER __SF_SIE_FLAGS(%r15),_TIF_ISOLATE_BP_GUEST
407407
SIEEXIT __SF_SIE_CONTROL(%r15),%r0
408408
#endif
409-
0: CHECK_STACK __LC_SAVE_AREA_ASYNC
409+
0: CHECK_STACK __LC_SAVE_AREA_ASYNC,%r0
410410
aghi %r15,-(STACK_FRAME_OVERHEAD + __PT_SIZE)
411411
j 2f
412412
1: lctlg %c1,%c1,__LC_KERNEL_ASCE

0 commit comments

Comments
 (0)