diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/s390/kernel/head.S | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/arch/s390/kernel/head.S b/arch/s390/kernel/head.S index 928ca65e8bb..d12cff11b4b 100644 --- a/arch/s390/kernel/head.S +++ b/arch/s390/kernel/head.S | |||
@@ -535,8 +535,13 @@ startup:basr %r13,0 # get base | |||
535 | lhi %r1,0 | 535 | lhi %r1,0 |
536 | icm %r1,3,.Lscpincr1-PARMAREA(%r4) # use this one if != 0 | 536 | icm %r1,3,.Lscpincr1-PARMAREA(%r4) # use this one if != 0 |
537 | jnz .Lscnd | 537 | jnz .Lscnd |
538 | l %r1,.Lscpincr2-PARMAREA+4(%r4) # otherwise use this one | 538 | lhi %r1,0x800 # otherwise report 2GB |
539 | .Lscnd: | 539 | .Lscnd: |
540 | lhi %r3,0x800 # limit reported memory size to 2GB | ||
541 | cr %r1,%r3 | ||
542 | jl .Lno2gb | ||
543 | lr %r1,%r3 | ||
544 | .Lno2gb: | ||
540 | xr %r3,%r3 # same logic | 545 | xr %r3,%r3 # same logic |
541 | ic %r3,.Lscpa1-PARMAREA(%r4) | 546 | ic %r3,.Lscpa1-PARMAREA(%r4) |
542 | chi %r3,0x00 | 547 | chi %r3,0x00 |