aboutsummaryrefslogtreecommitdiffstats
path: root/arch/s390/kernel
diff options
context:
space:
mode:
authorHeiko Carstens <heiko.carstens@de.ibm.com>2006-06-29 08:56:32 -0400
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2006-06-29 08:56:32 -0400
commitd7d23702554dc13297cff5eaf7a551c802daeab3 (patch)
tree9d1b588323fffeb712b1c045998e9b1367be3c02 /arch/s390/kernel
parent7380534314865528ef080593b291bba32fba60e8 (diff)
[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>
Diffstat (limited to 'arch/s390/kernel')
-rw-r--r--arch/s390/kernel/head31.S2
-rw-r--r--arch/s390/kernel/head64.S2
2 files changed, 2 insertions, 2 deletions
diff --git a/arch/s390/kernel/head31.S b/arch/s390/kernel/head31.S
index 2d3b089bfb83..8f38bfd642cf 100644
--- a/arch/s390/kernel/head31.S
+++ b/arch/s390/kernel/head31.S
@@ -87,7 +87,7 @@ startup:basr %r13,0 # get base
87 ic %r3,.Lscpa1-PARMAREA(%r4) 87 ic %r3,.Lscpa1-PARMAREA(%r4)
88 chi %r3,0x00 88 chi %r3,0x00
89 jne .Lcompmem 89 jne .Lcompmem
90 l %r3,.Lscpa2-PARMAREA(%r13) 90 l %r3,.Lscpa2-PARMAREA(%r4)
91.Lcompmem: 91.Lcompmem:
92 mr %r2,%r1 # mem in MB on 128-bit 92 mr %r2,%r1 # mem in MB on 128-bit
93 l %r1,.Lonemb-.LPG1(%r13) 93 l %r1,.Lonemb-.LPG1(%r13)
diff --git a/arch/s390/kernel/head64.S b/arch/s390/kernel/head64.S
index f08c06f45d5c..ad5d87f3aef3 100644
--- a/arch/s390/kernel/head64.S
+++ b/arch/s390/kernel/head64.S
@@ -86,7 +86,7 @@ startup:basr %r13,0 # get base
86 ic %r3,.Lscpa1-PARMAREA(%r4) 86 ic %r3,.Lscpa1-PARMAREA(%r4)
87 chi %r3,0x00 87 chi %r3,0x00
88 jne .Lcompmem 88 jne .Lcompmem
89 l %r3,.Lscpa2-PARMAREA(%r13) 89 l %r3,.Lscpa2-PARMAREA(%r4)
90.Lcompmem: 90.Lcompmem:
91 mlgr %r2,%r1 # mem in MB on 128-bit 91 mlgr %r2,%r1 # mem in MB on 128-bit
92 l %r1,.Lonemb-.LPG1(%r13) 92 l %r1,.Lonemb-.LPG1(%r13)