]> git.baikalelectronics.ru Git - kernel.git/commit
[S390] memory detection: fix off by one bug.
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Mon, 19 Mar 2007 12:18:50 +0000 (13:18 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 19 Mar 2007 12:18:50 +0000 (13:18 +0100)
commit7008b72d9bee294f667ef486507a43d7597232af
tree2fa6710a381d323202bbbce2971dd4743d239075
parenta70cdb75c825922c69e18736b2bb513a6131e2f9
[S390] memory detection: fix off by one bug.

diag 260 returns the address of the last addressable byte and not the
size of memory. Since we want the size we have to add 1 to the return
value.
Disable diag 260 for non z/Arch mode since it doesn't work there
anyway.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/kernel/early.c