mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
zdump/dfi: Introduce symbolic constants for OLDMEM base and size
Replace magic values with descriptive names to improve readability. Signed-off-by: Alexander Egorenkov <egorenar@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
committed by
Jan Höppner
parent
6ece595532
commit
b1da8bbbe9
+5
-2
@@ -18,6 +18,9 @@
|
|||||||
#define TIME_FMT_STR "%a, %d %b %Y %H:%M:%S %z"
|
#define TIME_FMT_STR "%a, %d %b %Y %H:%M:%S %z"
|
||||||
#define PROGRESS_HASH_CNT 50
|
#define PROGRESS_HASH_CNT 50
|
||||||
|
|
||||||
|
#define KDUMP_OLDMEM_BASE 0x10418
|
||||||
|
#define KDUMP_OLDMEM_SIZE 0x10420
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* DFI vector - ensure that tape is the first in the list and devmem the second!
|
* DFI vector - ensure that tape is the first in the list and devmem the second!
|
||||||
*/
|
*/
|
||||||
@@ -613,9 +616,9 @@ static void kdump_init(void)
|
|||||||
|
|
||||||
util_log_print(UTIL_LOG_TRACE, "DFI kdump initialization\n");
|
util_log_print(UTIL_LOG_TRACE, "DFI kdump initialization\n");
|
||||||
|
|
||||||
if (dfi_mem_phys_read(0x10418, &base, sizeof(base)))
|
if (dfi_mem_phys_read(KDUMP_OLDMEM_BASE, &base, sizeof(base)))
|
||||||
return;
|
return;
|
||||||
if (dfi_mem_phys_read(0x10420, &size, sizeof(size)))
|
if (dfi_mem_phys_read(KDUMP_OLDMEM_SIZE, &size, sizeof(size)))
|
||||||
return;
|
return;
|
||||||
if (base == 0 || size == 0)
|
if (base == 0 || size == 0)
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user