[S390] memory detection.
The wrong base register is used to read a value from the sclp data structure. The value is used to calculate the memory size. Use correct register %r4. Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
This commit is contained in:
parent
7380534314
commit
d7d2370255
@ -87,7 +87,7 @@ startup:basr %r13,0 # get base
|
||||
ic %r3,.Lscpa1-PARMAREA(%r4)
|
||||
chi %r3,0x00
|
||||
jne .Lcompmem
|
||||
l %r3,.Lscpa2-PARMAREA(%r13)
|
||||
l %r3,.Lscpa2-PARMAREA(%r4)
|
||||
.Lcompmem:
|
||||
mr %r2,%r1 # mem in MB on 128-bit
|
||||
l %r1,.Lonemb-.LPG1(%r13)
|
||||
|
@ -86,7 +86,7 @@ startup:basr %r13,0 # get base
|
||||
ic %r3,.Lscpa1-PARMAREA(%r4)
|
||||
chi %r3,0x00
|
||||
jne .Lcompmem
|
||||
l %r3,.Lscpa2-PARMAREA(%r13)
|
||||
l %r3,.Lscpa2-PARMAREA(%r4)
|
||||
.Lcompmem:
|
||||
mlgr %r2,%r1 # mem in MB on 128-bit
|
||||
l %r1,.Lonemb-.LPG1(%r13)
|
||||
|
Loading…
Reference in New Issue
Block a user