diff options
author | Michael Holzheu <holzheu@linux.vnet.ibm.com> | 2011-10-30 10:16:40 -0400 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2011-10-30 10:16:42 -0400 |
commit | 60a0c68df2632feaa4a986af084650d1165d89c5 (patch) | |
tree | f55907defeab43de02a5a3127c8d5a694a21b3a2 /arch/s390/mm | |
parent | 7f0bf656c66e4292e965c95fd9de55c72b6578bb (diff) |
[S390] kdump backend code
This patch provides the architecture specific part of the s390 kdump
support.
Signed-off-by: Michael Holzheu <holzheu@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/mm')
-rw-r--r-- | arch/s390/mm/vmem.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/s390/mm/vmem.c b/arch/s390/mm/vmem.c index 781ff5169560..4799383e2df9 100644 --- a/arch/s390/mm/vmem.c +++ b/arch/s390/mm/vmem.c | |||
@@ -335,6 +335,9 @@ void __init vmem_map_init(void) | |||
335 | ro_start = ((unsigned long)&_stext) & PAGE_MASK; | 335 | ro_start = ((unsigned long)&_stext) & PAGE_MASK; |
336 | ro_end = PFN_ALIGN((unsigned long)&_eshared); | 336 | ro_end = PFN_ALIGN((unsigned long)&_eshared); |
337 | for (i = 0; i < MEMORY_CHUNKS && memory_chunk[i].size > 0; i++) { | 337 | for (i = 0; i < MEMORY_CHUNKS && memory_chunk[i].size > 0; i++) { |
338 | if (memory_chunk[i].type == CHUNK_CRASHK || | ||
339 | memory_chunk[i].type == CHUNK_OLDMEM) | ||
340 | continue; | ||
338 | start = memory_chunk[i].addr; | 341 | start = memory_chunk[i].addr; |
339 | end = memory_chunk[i].addr + memory_chunk[i].size; | 342 | end = memory_chunk[i].addr + memory_chunk[i].size; |
340 | if (start >= ro_end || end <= ro_start) | 343 | if (start >= ro_end || end <= ro_start) |
@@ -368,6 +371,9 @@ static int __init vmem_convert_memory_chunk(void) | |||
368 | for (i = 0; i < MEMORY_CHUNKS; i++) { | 371 | for (i = 0; i < MEMORY_CHUNKS; i++) { |
369 | if (!memory_chunk[i].size) | 372 | if (!memory_chunk[i].size) |
370 | continue; | 373 | continue; |
374 | if (memory_chunk[i].type == CHUNK_CRASHK || | ||
375 | memory_chunk[i].type == CHUNK_OLDMEM) | ||
376 | continue; | ||
371 | seg = kzalloc(sizeof(*seg), GFP_KERNEL); | 377 | seg = kzalloc(sizeof(*seg), GFP_KERNEL); |
372 | if (!seg) | 378 | if (!seg) |
373 | panic("Out of memory...\n"); | 379 | panic("Out of memory...\n"); |