s390/dump: introduce boot data 'oldmem_data'
The new boot data struct shall replace global variables OLDMEM_BASE and OLDMEM_SIZE. It is initialized in the decompressor and passed to the decompressed kernel. In comparison to the old solution, this one doesn't access data at fixed physical addresses which will become important when the decompressor becomes relocatable. Signed-off-by: Alexander Egorenkov <egorenar@linux.ibm.com> Acked-by: Heiko Carstens <hca@linux.ibm.com> Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
This commit is contained in:
committed by
Heiko Carstens
parent
84733284f6
commit
e9e7870f90
@@ -673,7 +673,7 @@ void __init smp_save_dump_cpus(void)
|
||||
unsigned long page;
|
||||
bool is_boot_cpu;
|
||||
|
||||
if (!(OLDMEM_BASE || is_ipl_type_dump()))
|
||||
if (!(oldmem_data.start || is_ipl_type_dump()))
|
||||
/* No previous system present, normal boot. */
|
||||
return;
|
||||
/* Allocate a page as dumping area for the store status sigps */
|
||||
@@ -704,7 +704,7 @@ void __init smp_save_dump_cpus(void)
|
||||
* these registers an SCLP request is required which is
|
||||
* done by drivers/s390/char/zcore.c:init_cpu_info()
|
||||
*/
|
||||
if (!is_boot_cpu || OLDMEM_BASE)
|
||||
if (!is_boot_cpu || oldmem_data.start)
|
||||
/* Get the CPU registers */
|
||||
smp_save_cpu_regs(sa, addr, is_boot_cpu, page);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user