ppc: move DEBUG code to --debug
Subsystems (2)
PATCH v2 1/1 ppc: move DEBUG code to --debug
From: Cong Wang <[email protected]>
From: Cong Wang <[email protected]>
V2: Fix a compile error
Like commit 28d4ab53280853d2aeefdfb7c369331e89ab9ac2 ("Add generic debug option"), this one moves code under #if DEBUG to --debug on ppc arch.
Sorry that I still can't find a ppc32 machine to test this.
--- kexec/arch/ppc/crashdump-powerpc.c | 18 ++++++++---------- kexec/arch/ppc/fixup_dtb.c | 32 ++++++++++++++------------------ kexec/arch/ppc/fs2dt.c | 6 +++--- kexec/arch/ppc/kexec-ppc.c | 17 ++++++++--------- kexec/arch/ppc/libfdt-wrapper.c | 4 ++-- kexec/arch/ppc64/crashdump-ppc64.c | 16 ++++++---------- kexec/arch/ppc64/kexec-elf-ppc64.c | 23 +++++++++++------------ kexec/arch/ppc64/kexec-ppc64.c | 9 +++------ 8 files changed, 55 insertions(+), 70 deletions(-)
kexec/arch/ppc/crashdump-powerpc.c +8 -10
@@ -226,15 +226,15 @@ static int get_crash_memory_ranges(struct memory_range **range, int *ranges) *range = crash_memory_range; *ranges = memory_ranges; -#if DEBUG +int j; -printf ("CRASH MEMORY RANGES\n" ); +dbgprintf ("CRASH MEMORY RANGES\n" );for (j =0 ; j < *ranges; j++) { start = crash_memory_range[j].start; end = crash_memory_range[j].end; -fprintf (stderr,"%016Lx-%016Lx\n" , start, end); +dbgprintf ("%016Lx-%016Lx\n" , start, end); } -#endif +return 0 ; err:
@@ -289,9 +289,9 @@ static int add_cmdline_param(char *cmdline, unsigned long long addr,if (cmdlen > (COMMAND_LINE_SIZE -1 ))die ("Command line overflow\n" );strcat (cmdline, str); -#if DEBUG -fprintf (stderr,"Command line after adding elfcorehdr: %s\n" , cmdline); -#endif + +dbgprintf ("Command line after adding elfcorehdr: %s\n" , cmdline); +return 0 ; }
@@ -403,10 +403,8 @@ void add_usable_mem_rgns(unsigned long long base, unsigned long long size) usablemem_rgns.ranges[usablemem_rgns.size].start = base; usablemem_rgns.ranges[usablemem_rgns.size++].end = end; -#ifdef DEBUG -fprintf (stderr,"usable memory rgns size:%u base:%llx size:%llx\n" , +dbgprintf ("usable memory rgns size:%u base:%llx size:%llx\n" , usablemem_rgns.size, base, size); -#endif }int is_crashkernel_mem_reserved (void )
kexec/arch/ppc/fixup_dtb.c +14 -18
@@ -17,25 +17,26 @@const char proc_dts[] ="/proc/device-tree" ; -#ifdef DEBUG -static void print_fdt_reserve_regions (void ) +static void print_fdt_reserve_regions (char *blob_buf) {int i, num; +if (!kexec_debug) +return ;/* Print out a summary of the final reserve regions */ num =fdt_num_mem_rsv (blob_buf); -printf ("reserve regions: %d\n" , num); +dbgprintf ("reserve regions: %d\n" , num);for (i =0 ; i < num; i++) {uint64_t offset, size;if (fdt_get_mem_rsv (blob_buf, i, &offset, &size) ==0 ) { -printf ("%d: offset: %llx, size: %llx\n" , i, offset, size); +dbgprintf ("%d: offset: %llx, size: %llx\n" , i, offset, size); }else { -printf ("Error retreiving reserved region\n" ); +dbgprintf ("Error retreiving reserved region\n" ); } } } -#endif +static void fixup_nodes (char *nodes[]) {
@@ -201,11 +202,8 @@ static void fixup_reserve_regions(struct kexec_info *info, char *blob_buf) "device_type", "cpu", 4); } -out: ; - -#ifdef DEBUG -print_fdt_reserve_regions (); -#endif +out: +print_fdt_reserve_regions (blob_buf); }static void fixup_memory (struct kexec_info *info,char *blob_buf)
@@ -369,23 +367,23 @@ char *fixup_dtb_init(struct kexec_info *info, char *blob_buf, off_t *blob_size,return blob_buf; } -#ifdef DEBUG static void save_fixed_up_dtb (char *blob_buf,off_t blob_size) {FILE *fp; +if (!kexec_debug) +return ; fp =fopen ("debug.dtb" ,"w" );if (fp) {if ( blob_size ==fwrite (blob_buf,sizeof (char ), blob_size, fp)) { -printf ("debug.dtb written\n" ); +dbgprintf ("debug.dtb written\n" ); }else { -printf ("Unable to write debug.dtb\n" ); +dbgprintf ("Unable to write debug.dtb\n" ); } }else { -printf ("Unable to dump flat device tree to debug.dtb\n" ); +dbgprintf ("Unable to dump flat device tree to debug.dtb\n" ); } } -#endif char *fixup_dtb_finalize (struct kexec_info *info,char *blob_buf,off_t *blob_size,char *nodes[],char *cmdline)
@@ -400,9 +398,7 @@ char *fixup_dtb_finalize(struct kexec_info *info, char *blob_buf, off_t *blob_si blob_buf = (char *)dt_ops.finalize (); *blob_size =fdt_totalsize (blob_buf); -#ifdef DEBUG save_fixed_up_dtb (blob_buf, *blob_size); -#endif return blob_buf; }
kexec/arch/ppc/fs2dt.c +3 -3
@@ -273,9 +273,9 @@ static void putprops(char *fn, struct dirent **nlist, int numlist)memcpy (dt, local_cmdline, cmd_len); len = cmd_len; *dt_len = cmd_len; -#if DEBUG -fprintf (stderr,"Modified cmdline:%s\n" , local_cmdline); -#endif + +dbgprintf ("Modified cmdline:%s\n" , local_cmdline); + } dt += (len +3 )/4 ;
kexec/arch/ppc/kexec-ppc.c +8 -9
@@ -378,9 +378,9 @@ static int get_base_ranges(void) nr_memory_ranges = local_memory_ranges;sort_base_ranges (); memory_max = base_memory_range[nr_memory_ranges -1 ].end; -#ifdef DEBUG -fprintf (stderr,"get base memory ranges:%d\n" , nr_memory_ranges); -#endif + +dbgprintf ("get base memory ranges:%d\n" , nr_memory_ranges); +return 0 ; }
@@ -716,13 +716,13 @@ static int get_devtree_details(unsigned long kexec_flags)sort_ranges (); -#ifdef DEBUG +int k;for (k =0 ; k < i; k++) -fprintf (stderr,"exclude_range sorted exclude_range[%d] " +dbgprintf ("exclude_range sorted exclude_range[%d] " "start:%llx, end:%llx\n" , k, exclude_range[k].start, exclude_range[k].end); -#endif +return 0 ; error_openfile:
@@ -812,13 +812,12 @@ static int setup_memory_ranges(unsigned long kexec_flags) }else nr_memory_ranges = j; -#ifdef DEBUG +int k;for (k =0 ; k < j; k++) -fprintf (stderr,"setup_memory_ranges memory_range[%d] " +dbgprintf ("setup_memory_ranges memory_range[%d] " "start:%llx, end:%llx\n" , k, memory_range[k].start, memory_range[k].end); -#endif return 0 ; out:
kexec/arch/ppc/libfdt-wrapper.c +2 -2
@@ -27,15 +27,15 @@#include <page.h> #include <libfdt.h> #include "ops.h" +#include "../../kexec.h" -#define DEBUG 0#define BAD_ERROR (err) (((err) < 0) \ && ((err) != -FDT_ERR_NOTFOUND) \ && ((err) != -FDT_ERR_EXISTS))#define check_err (err) \ ({ \ - if (BAD_ERROR(err) || ((err < 0) && DEBUG)) \ + if (BAD_ERROR(err) || ((err < 0) && kexec_debug)) \ printf("%s():%d %s\n\r", __func__, __LINE__, \ fdt_strerror(err)); \ if (BAD_ERROR(err)) \
kexec/arch/ppc64/crashdump-ppc64.c +6 -10
@@ -304,15 +304,15 @@ static int get_crash_memory_ranges(struct memory_range **range, int *ranges) *range = crash_memory_range; *ranges = memory_ranges; -#if DEBUG +int j; -printf ("CRASH MEMORY RANGES\n" ); +dbgprintf ("CRASH MEMORY RANGES\n" );for (j =0 ; j < *ranges; j++) { start = crash_memory_range[j].start; end = crash_memory_range[j].end; -fprintf (stderr,"%016Lx-%016Lx\n" , start, end); +dbgprintf ("%016Lx-%016Lx\n" , start, end); } -#endif +return 0 ; err:
@@ -367,9 +367,7 @@ static int add_cmdline_param(char *cmdline, uint64_t addr, char *cmdstr,if (cmdlen > (COMMAND_LINE_SIZE -1 ))die ("Command line overflow\n" );strcat (cmdline, str); -#if DEBUG -fprintf (stderr,"Command line after adding elfcorehdr: %s\n" , cmdline); -#endif +dbgprintf ("Command line after adding elfcorehdr: %s\n" , cmdline);return 0 ; }
@@ -490,10 +488,8 @@ void add_usable_mem_rgns(unsigned long long base, unsigned long long size) usablemem_rgns.ranges[usablemem_rgns.size].start = base; usablemem_rgns.ranges[usablemem_rgns.size++].end = end; -#ifdef DEBUG -fprintf (stderr,"usable memory rgns size:%u base:%llx size:%llx\n" , +dbgprintf ("usable memory rgns size:%u base:%llx size:%llx\n" , usablemem_rgns.size, base, size); -#endif }int is_crashkernel_mem_reserved (void )
kexec/arch/ppc64/kexec-elf-ppc64.c +11 -12
@@ -294,7 +294,7 @@ int elf_ppc64_load(int argc, char **argv, const char *buf, off_t len,/* Set debug */ elf_rel_set_symbol (&info->rhdr,"debug" , &my_debug,sizeof (my_debug)); -#ifdef DEBUG + my_kernel =0 ; my_dt_offset =0 ; my_panic_kernel =0 ;
@@ -318,19 +318,18 @@ int elf_ppc64_load(int argc, char **argv, const char *buf, off_t len, sizeof(toc_addr));elf_rel_get_symbol (&info->rhdr,"debug" , &my_debug,sizeof (my_debug)); -fprintf (stderr,"info->entry is %p\n" , info->entry); -fprintf (stderr,"kernel is %llx\n" , (unsigned long long )my_kernel); -fprintf (stderr,"dt_offset is %llx\n" , +dbgprintf ("info->entry is %p\n" , info->entry); +dbgprintf ("kernel is %llx\n" , (unsigned long long )my_kernel); +dbgprintf ("dt_offset is %llx\n" , (unsigned long long )my_dt_offset); -fprintf (stderr,"run_at_load flag is %x\n" , my_run_at_load); -fprintf (stderr,"panic_kernel is %x\n" , my_panic_kernel); -fprintf (stderr,"backup_start is %llx\n" , +dbgprintf ("run_at_load flag is %x\n" , my_run_at_load); +dbgprintf ("panic_kernel is %x\n" , my_panic_kernel); +dbgprintf ("backup_start is %llx\n" , (unsigned long long )my_backup_start); -fprintf (stderr,"stack is %llx\n" , (unsigned long long )my_stack); -fprintf (stderr,"toc_addr is %llx\n" , (unsigned long long )toc_addr); -fprintf (stderr,"purgatory size is %zu\n" , purgatory_size); -fprintf (stderr,"debug is %d\n" , my_debug); -#endif +dbgprintf ("stack is %llx\n" , (unsigned long long )my_stack); +dbgprintf ("toc_addr is %llx\n" , (unsigned long long )toc_addr); +dbgprintf ("purgatory size is %zu\n" , purgatory_size); +dbgprintf ("debug is %d\n" , my_debug);for (i =0 ; i < info->nr_segments; i++) fprintf(stderr, "segment[%d].mem:%p memsz:%zu\n", i,
kexec/arch/ppc64/kexec-ppc64.c +3 -6
@@ -594,13 +594,12 @@ static int get_devtree_details(unsigned long kexec_flags)sort_ranges (); -#ifdef DEBUG int k;for (k =0 ; k < i; k++) -fprintf (stderr,"exclude_range sorted exclude_range[%d] " +dbgprintf ("exclude_range sorted exclude_range[%d] " "start:%llx, end:%llx\n" , k, exclude_range[k].start, exclude_range[k].end); -#endif +return 0 ; error_openfile:
@@ -687,13 +686,11 @@ int setup_memory_ranges(unsigned long kexec_flags) } nr_memory_ranges = j; -#ifdef DEBUG int k;for (k =0 ; k < j; k++) -fprintf (stderr,"setup_memory_ranges memory_range[%d] " +dbgprintf ("setup_memory_ranges memory_range[%d] " "start:%llx, end:%llx\n" , k, memory_range[k].start, memory_range[k].end); -#endif return 0 ; out:
_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec
Simon Horman
AppliedQuoted 11 lines · Cong Wang
From: Cong Wang <[email protected]>
From: Cong Wang <[email protected]>
V2: Fix a compile errorLike commit
28d4ab53280853d2aeefdfb7c369331e89ab9ac2("Add generic debug option"), this one moves code under #if DEBUG to --debug on ppc arch.Sorry that I still can't find a ppc32 machine to test this.
Thank, I don't have any ppc32 (or 64) hardware to test on, but I did use a cross-compiler to check that it builds.
Quoted 2 lines
Cc Simon Horman <[email protected]>Signed-off-by Cong Wang <[email protected]>
Applied
_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec
Quoted 7 lines · Simon Horman
Quoted 6 lines · Cong Wang
From: Cong Wang<[email protected]>
From: Cong Wang<[email protected]>
V2: Fix a compile error
Quoted 11 lines
Quoted 5 lines
Like commit
28d4ab53280853d2aeefdfb7c369331e89ab9ac2("Add generic debug option"), this one moves code under #if DEBUG to --debug on ppc arch.Sorry that I still can't find a ppc32 machine to test this.
Thank, I don't have any ppc32 (or 64) hardware to test on, but I did use a cross-compiler to check that it builds.
Quoted 2 lines
Cc Simon Horman<[email protected]>Signed-off-by Cong Wang<[email protected]>
It builds and works fine for me on PPC32. Sample output below.
Thanks
Suzuki
--- Sample output ---
# kexec -p --debug vmlinux.strip 0000000000000000-0000000080000000 : 0 get base memory ranges:1 usable memory rgns size:1 base:8000000 size:8000000 exclude_range sorted exclude_range[0] start:0, end:1617000 setup_memory_ranges memory_range[0] start:1617001, end:30000000 CRASH MEMORY RANGES 0000000000000000-0000000008000000 0000000010000000-0000000080000000 get_crash_notes_per_cpu: crash_notes addr = 305445c Elf header: p_type = 4, p_offset = 0x305445c p_paddr = 0x305445c p_vaddr = 0x0 p_filesz = 0x400 p_memsz = 0x400 vmcoreinfo header: p_type = 4, p_offset = 0x15fa3bc p_paddr = 0x15fa3bc p_vaddr = 0x0 p_filesz = 0x1000 p_memsz = 0x1000 Elf header: p_type = 1, p_offset = 0x0 p_paddr = 0x0 p_vaddr = 0xc0000000 p_filesz = 0x8000000 p_memsz = 0x8000000 Elf header: p_type = 1, p_offset = 0x10000000 p_paddr = 0x10000000 p_vaddr = 0xffffffff p_filesz = 0x70000000 p_memsz = 0x70000000 Command line after adding elfcorehdr: elfcorehdr=141860K Command line after adding elfcorehdr: elfcorehdr=141860K savemaxmem=2048M sym: sha256_starts info: 12 other: 00 shndx: 1 value: 0 size: a1c sym: sha256_starts value: 8a8aa1c addr: 8a8a024 sym: .data info: 03 other: 00 shndx: 4 value: 0 size: 0 sym: .data value: 8a8fae8 addr: 8a8a02a sym: .data info: 03 other: 00 shndx: 4 value: 0 size: 0 sym: .data value: 8a8fae8 addr: 8a8a02e sym: sha256_update info: 12 other: 00 shndx: 1 value: 0 size: 5454 sym: sha256_update value: 8a8f454 addr: 8a8a044 sym: sha256_finish info: 12 other: 00 shndx: 1 value: 0 size: 55dc sym: sha256_finish value: 8a8f5dc addr: 8a8a05c sym: memcmp info: 12 other: 00 shndx: 1 value: 0 size: 6e0 sym: memcmp value: 8a8a6e0 addr: 8a8a06c sym: .rodata.str1.1 info: 03 other: 00 shndx: 3 value: 0 size: 0 sym: .rodata.str1.1 value: 8a8fa7c addr: 8a8a07e sym: .rodata.str1.1 info: 03 other: 00 shndx: 3 value: 0 size: 0 sym: .rodata.str1.1 value: 8a8fa7c addr: 8a8a086 sym: printf info: 12 other: 00 shndx: 1 value: 0 size: 57c sym: printf value: 8a8a57c addr: 8a8a088 sym: .rodata.str1.1 info: 03 other: 00 shndx: 3 value: 0 size: 0 sym: .rodata.str1.1 value: 8a8fa9c addr: 8a8a08e sym: .rodata.str1.1 info: 03 other: 00 shndx: 3 value: 0 size: 0 sym: .rodata.str1.1 value: 8a8fa9c addr: 8a8a092 sym: printf info: 12 other: 00 shndx: 1 value: 0 size: 57c sym: printf value: 8a8a57c addr: 8a8a094 sym: .rodata.str1.1 info: 03 other: 00 shndx: 3 value: 0 size: 0 sym: .rodata.str1.1 value: 8a8faac addr: 8a8a09a sym: .rodata.str1.1 info: 03 other: 00 shndx: 3 value: 0 size: 0 sym: .rodata.str1.1 value: 8a8faac addr: 8a8a09e sym: printf info: 12 other: 00 shndx: 1 value: 0 size: 57c sym: printf value: 8a8a57c addr: 8a8a0ac sym: .rodata.str1.1 info: 03 other: 00 shndx: 3 value: 0 size: 0 sym: .rodata.str1.1 value: 8a8fab2 addr: 8a8a0be sym: .rodata.str1.1 info: 03 other: 00 shndx: 3 value: 0 size: 0 sym: .rodata.str1.1 value: 8a8fab2 addr: 8a8a0c2 sym: printf info: 12 other: 00 shndx: 1 value: 0 size: 57c sym: printf value: 8a8a57c addr: 8a8a0c4 sym: .rodata.str1.1 info: 03 other: 00 shndx: 3 value: 0 size: 0 sym: .rodata.str1.1 value: 8a8fab4 addr: 8a8a0ca sym: .rodata.str1.1 info: 03 other: 00 shndx: 3 value: 0 size: 0 sym: .rodata.str1.1 value: 8a8fab4 addr: 8a8a0ce sym: printf info: 12 other: 00 shndx: 1 value: 0 size: 57c sym: printf value: 8a8a57c addr: 8a8a0d0 sym: .data info: 03 other: 00 shndx: 4 value: 0 size: 0 sym: .data value: 8a8fae8 addr: 8a8a0d6 sym: .data info: 03 other: 00 shndx: 4 value: 0 size: 0 sym: .data value: 8a8fae8 addr: 8a8a0da sym: printf info: 12 other: 00 shndx: 1 value: 0 size: 57c sym: printf value: 8a8a57c addr: 8a8a0f0 sym: .rodata.str1.1 info: 03 other: 00 shndx: 3 value: 0 size: 0 sym: .rodata.str1.1 value: 8a8fab2 addr: 8a8a0fe sym: .rodata.str1.1 info: 03 other: 00 shndx: 3 value: 0 size: 0 sym: .rodata.str1.1 value: 8a8fab2 addr: 8a8a102 sym: printf info: 12 other: 00 shndx: 1 value: 0 size: 57c sym: printf value: 8a8a57c addr: 8a8a104 sym: .rodata.str1.1 info: 03 other: 00 shndx: 3 value: 0 size: 0 sym: .rodata.str1.1 value: 8a8fac4 addr: 8a8a132 sym: .rodata.str1.1 info: 03 other: 00 shndx: 3 value: 0 size: 0 sym: .rodata.str1.1 value: 8a8fac4 addr: 8a8a136 sym: printf info: 12 other: 00 shndx: 1 value: 0 size: 57c sym: printf value: 8a8a57c addr: 8a8a13c sym: setup_arch info: 12 other: 00 shndx: 1 value: 0 size: a0c sym: setup_arch value: 8a8aa0c addr: 8a8a140 sym: verify_sha256_digest info: 12 other: 00 shndx: 1 value: 0 size: 0 sym: verify_sha256_digest value: 8a8a000 addr: 8a8a144 sym: post_verification_setup_arch info: 12 other: 00 shndx: 1 value: 0 size: a10 sym: post_verification_setup_arch value: 8a8aa10 addr: 8a8a154 sym: .rodata.str1.1 info: 03 other: 00 shndx: 3 value: 0 size: 0 sym: .rodata.str1.1 value: 8a8fad6 addr: 8a8a172 sym: .rodata.str1.1 info: 03 other: 00 shndx: 3 value: 0 size: 0 sym: .rodata.str1.1 value: 8a8fad6 addr: 8a8a17a sym: putchar info: 12 other: 00 shndx: 1 value: 0 size: a18 sym: putchar value: 8a8aa18 addr: 8a8a1ec sym: putchar info: 12 other: 00 shndx: 1 value: 0 size: a18 sym: putchar value: 8a8aa18 addr: 8a8a248 sym: __lshrdi3 info: 10 other: 00 shndx: 1 value: 0 size: 9e8 sym: __lshrdi3 value: 8a8a9e8 addr: 8a8a370 sym: putchar info: 12 other: 00 shndx: 1 value: 0 size: a18 sym: putchar value: 8a8aa18 addr: 8a8a508 sym: vsprintf info: 12 other: 00 shndx: 1 value: 0 size: 168 sym: vsprintf value: 8a8a168 addr: 8a8a5d0 sym: vsprintf info: 12 other: 00 shndx: 1 value: 0 size: 168 sym: vsprintf value: 8a8a168 addr: 8a8a62c sym: my_thread_ptr info: 11 other: 00 shndx: 5 value: 0 size: 10 sym: my_thread_ptr value: 8a8fc58 addr: 8a8a836 sym: my_thread_ptr info: 11 other: 00 shndx: 5 value: 0 size: 10 sym: my_thread_ptr value: 8a8fc58 addr: 8a8a83a sym: stack info: 11 other: 00 shndx: 5 value: 0 size: 8 sym: stack value: 8a8fc50 addr: 8a8a842 sym: stack info: 11 other: 00 shndx: 5 value: 0 size: 8 sym: stack value: 8a8fc50 addr: 8a8a846 sym: purgatory info: 12 other: 00 shndx: 1 value: 0 size: 128 sym: purgatory value: 8a8a128 addr: 8a8a850 sym: dt_offset info: 11 other: 00 shndx: 5 value: 0 size: c sym: dt_offset value: 8a8fc54 addr: 8a8a86a sym: dt_offset info: 11 other: 00 shndx: 5 value: 0 size: c sym: dt_offset value: 8a8fc54 addr: 8a8a86e sym: kernel info: 11 other: 00 shndx: 5 value: 0 size: 14 sym: kernel value: 8a8fc5c addr: 8a8a886 sym: kernel info: 11 other: 00 shndx: 5 value: 0 size: 14 sym: kernel value: 8a8fc5c addr: 8a8a88a sym: memcpy info: 12 other: 00 shndx: 1 value: 0 size: 6ac sym: memcpy value: 8a8a6ac addr: 8a8f524 sym: sha256_process info: 12 other: 00 shndx: 1 value: 0 size: ad4 sym: sha256_process value: 8a8aad4 addr: 8a8f538 sym: sha256_process info: 12 other: 00 shndx: 1 value: 0 size: ad4 sym: sha256_process value: 8a8aad4 addr: 8a8f570 sym: memcpy info: 12 other: 00 shndx: 1 value: 0 size: 6ac sym: memcpy value: 8a8a6ac addr: 8a8f5c0 sym: .data info: 03 other: 00 shndx: 4 value: 0 size: 0 sym: .data value: 8a8fc08 addr: 8a8f6e6 sym: .data info: 03 other: 00 shndx: 4 value: 0 size: 0 sym: .data value: 8a8fc08 addr: 8a8f6ea sym: sha256_update info: 12 other: 00 shndx: 1 value: 0 size: 5454 sym: sha256_update value: 8a8f454 addr: 8a8f6f0 sym: sha256_update info: 12 other: 00 shndx: 1 value: 0 size: 5454 sym: sha256_update value: 8a8f454 addr: 8a8f704 Modified cmdline: elfcorehdr=141860K savemaxmem=2048M maxcpus=1 reserve regions: 2 0: offset: 97fe000, size: 2000 1: offset: 8000000, size: a90000 debug.dtb written
_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec
Quoted 14 lines · Suzuki K. Poulose
Quoted 13 lines · Simon Horman
Quoted 11 lines · Cong Wang
From: Cong Wang<[email protected]>
From: Cong Wang<[email protected]>
V2: Fix a compile errorLike commit
28d4ab53280853d2aeefdfb7c369331e89ab9ac2("Add generic debug option"), this one moves code under #if DEBUG to --debug on ppc arch.Sorry that I still can't find a ppc32 machine to test this.
Quoted 7 lines
Quoted 5 lines
Thank, I don't have any ppc32 (or 64) hardware to test on, but I did use a cross-compiler to check that it builds.
Quoted 2 lines
Cc Simon Horman<[email protected]>Signed-off-by Cong Wang<[email protected]>It builds and works fine for me on PPC32. Sample output below.
Thanks!
_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec
Quoted 4 lines · Simon Horman
Quoted 1 line · Suzuki K. Poulose
It builds and works fine for me on PPC32. Sample output below.
Thanks!
Thanks to both of you! :)
_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec