aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHeiko Carstens <heiko.carstens@de.ibm.com>2011-03-23 05:16:00 -0400
committerMartin Schwidefsky <sky@mschwide.boeblingen.de.ibm.com>2011-03-23 05:15:59 -0400
commit4cc69531f91dfa1668af5e9d8efe9e3bc7b64548 (patch)
treee85145b1af9db2257262f6356889947d4e86d565
parent71189284e61fd818547430186f524c1db54fb7c7 (diff)
[S390] setup: register bss section as resource
Make kernel bss section visible via /proc/iomem like on other architectures. Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
-rw-r--r--arch/s390/kernel/setup.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/s390/kernel/setup.c b/arch/s390/kernel/setup.c
index 455345104c8c..ed183c2c6168 100644
--- a/arch/s390/kernel/setup.c
+++ b/arch/s390/kernel/setup.c
@@ -436,9 +436,15 @@ static struct resource data_resource = {
436 .flags = IORESOURCE_BUSY | IORESOURCE_MEM, 436 .flags = IORESOURCE_BUSY | IORESOURCE_MEM,
437}; 437};
438 438
439static struct resource bss_resource = {
440 .name = "Kernel bss",
441 .flags = IORESOURCE_BUSY | IORESOURCE_MEM,
442};
443
439static struct resource __initdata *standard_resources[] = { 444static struct resource __initdata *standard_resources[] = {
440 &code_resource, 445 &code_resource,
441 &data_resource, 446 &data_resource,
447 &bss_resource,
442}; 448};
443 449
444static void __init setup_resources(void) 450static void __init setup_resources(void)
@@ -450,6 +456,8 @@ static void __init setup_resources(void)
450 code_resource.end = (unsigned long) &_etext - 1; 456 code_resource.end = (unsigned long) &_etext - 1;
451 data_resource.start = (unsigned long) &_etext; 457 data_resource.start = (unsigned long) &_etext;
452 data_resource.end = (unsigned long) &_edata - 1; 458 data_resource.end = (unsigned long) &_edata - 1;
459 bss_resource.start = (unsigned long) &__bss_start;
460 bss_resource.end = (unsigned long) &__bss_stop - 1;
453 461
454 for (i = 0; i < MEMORY_CHUNKS; i++) { 462 for (i = 0; i < MEMORY_CHUNKS; i++) {
455 if (!memory_chunk[i].size) 463 if (!memory_chunk[i].size)