summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorHeiko Carstens <heiko.carstens@de.ibm.com>2011-03-23 10:16:00 +0100
committerMartin Schwidefsky <sky@mschwide.boeblingen.de.ibm.com>2011-03-23 10:15:59 +0100
commit4cc69531f91dfa1668af5e9d8efe9e3bc7b64548 (patch)
treee85145b1af9db2257262f6356889947d4e86d565 /arch
parent71189284e61fd818547430186f524c1db54fb7c7 (diff)
downloadblackbird-op-linux-4cc69531f91dfa1668af5e9d8efe9e3bc7b64548.tar.gz
blackbird-op-linux-4cc69531f91dfa1668af5e9d8efe9e3bc7b64548.zip
[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>
Diffstat (limited to 'arch')
-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 = {
.flags = IORESOURCE_BUSY | IORESOURCE_MEM,
};
+static struct resource bss_resource = {
+ .name = "Kernel bss",
+ .flags = IORESOURCE_BUSY | IORESOURCE_MEM,
+};
+
static struct resource __initdata *standard_resources[] = {
&code_resource,
&data_resource,
+ &bss_resource,
};
static void __init setup_resources(void)
@@ -450,6 +456,8 @@ static void __init setup_resources(void)
code_resource.end = (unsigned long) &_etext - 1;
data_resource.start = (unsigned long) &_etext;
data_resource.end = (unsigned long) &_edata - 1;
+ bss_resource.start = (unsigned long) &__bss_start;
+ bss_resource.end = (unsigned long) &__bss_stop - 1;
for (i = 0; i < MEMORY_CHUNKS; i++) {
if (!memory_chunk[i].size)
OpenPOWER on IntegriCloud