Commit 514211f5 authored by Vasily Gorbik's avatar Vasily Gorbik Committed by Martin Schwidefsky

s390/setup: do not reserve the decompressor code

Introduce PARMAREA_END, and use it for memblock reserve of low
memory, which is used for lowcore, kdump data mover code and page
buffer, early stack and parmarea. There is no need to reserve an
area between PARMAREA_END and the decompressor _ehead.
Reviewed-by: default avatarHeiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: default avatarVasily Gorbik <gor@linux.ibm.com>
Signed-off-by: default avatarMartin Schwidefsky <schwidefsky@de.ibm.com>
parent 6075e4ae
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
#define PARMAREA 0x10400 #define PARMAREA 0x10400
#define PARMAREA_END 0x11000
/* /*
* Machine features detected in early.c * Machine features detected in early.c
......
...@@ -674,12 +674,12 @@ static void __init reserve_kernel(void) ...@@ -674,12 +674,12 @@ static void __init reserve_kernel(void)
#ifdef CONFIG_DMA_API_DEBUG #ifdef CONFIG_DMA_API_DEBUG
/* /*
* DMA_API_DEBUG code stumbles over addresses from the * DMA_API_DEBUG code stumbles over addresses from the
* range [_ehead, _stext]. Mark the memory as reserved * range [PARMAREA_END, _stext]. Mark the memory as reserved
* so it is not used for CONFIG_DMA_API_DEBUG=y. * so it is not used for CONFIG_DMA_API_DEBUG=y.
*/ */
memblock_reserve(0, PFN_PHYS(start_pfn)); memblock_reserve(0, PFN_PHYS(start_pfn));
#else #else
memblock_reserve(0, (unsigned long)_ehead); memblock_reserve(0, PARMAREA_END);
memblock_reserve((unsigned long)_stext, PFN_PHYS(start_pfn) memblock_reserve((unsigned long)_stext, PFN_PHYS(start_pfn)
- (unsigned long)_stext); - (unsigned long)_stext);
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment